0 Replies Latest reply on Feb 3, 2012 2:59 AM by ptnguyen111

    Anyone succeeds in configuring mod_rewrite in JBoss 5?

    ptnguyen111

      I am newbie, and i would like to enable mod_rewrite in my web server running Jboss 5.1 GA.

       

      I followed the guide in http://www.jboss.org/jbossweb/modules/rewrite.html but does not success.

       

      1. First time, i put <Valve className="org.jboss.web.rewrite.RewriteValve" /> in my [web.war]/WEB-INF/context.xml. And put the rewrite.properties in the same folder.

      2. Seconly, i put <Valve className="org.jboss.web.rewrite.RewriteValve" /> in [JBOSS]/server/default/deploy/jbossweb.sar/server.xml, under the <host> element. And put the rewrite.properties [JBOSS]/server/default/conf/jboss.web/localhost

       

      Both cases do not succeed.

       

      Any help would be appreciated.

       

      Thank you