I have a Apache server using mod_proxy_ajp to have Jboss/Tomcat5.5 handling all the requests. Here is how I configured Apache 2.2.17, and for the most part, it works:
# Proxy pass all work to Tomcat, mod_jk 1.2.31
<Location />
# ProxyPass / http://localhost:8080/
ProxyPass ajp://localhost:8009/
ProxyPassReverse ajp://localhost:8009/
</Location>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# and , to handle the redirect of the root dir
Redirect permanent / https://%{HTTP_HOST}%/myapp
Unfortunately, while ProxyPass is enabled, I am not able to get any mod_rewrite rules to work except for the ones above. How do I handle this situation?
I am trying to create a rewrite rule similar to this RedirectMatch rule (which only works if I turn off ProxyPass):
RedirectMatch ^/(?i)myagency "/myapp?agency=MyAgency%20LA"
Also, another wierd thing I found, which may provide insight to my issue, is posted here .