开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜