Case in-sensitive Jboss 7 web application context root
Is there开发者_JAVA百科 a way to make web application context case in-sensitive?
Basically i'm doing the following in jboss-web.xml
<jboss-web>
<context-root>cap</context-root>
</jboss-web>
I'm able to access the app via localhost:8080/cap, but trying to make it accessible via localhost:8080/Cap or localhost:8080/CAP. Any ideas please?
Put apache+mod_proxy in front of jboss and use url-rewriting or redirection (easier option). Example of rewrite:
RewriteEngine on
RewriteRule ^/Cap$ /cap/ [R]
RewriteRule ^/CAP$ /cap/ [R]
You would put the above to httpd.conf or a similar location.
精彩评论