Forum Moderators: phranque
ProxyPass /base2/ ajp://localhost:8009/base2/
However, when the address of host.com/base2 is used, I get a file not found. This is expected, but I'm not sure how to fix the trailing slash problem while using proxy_ajp, as it's not a directory. In the same vein, I'd like to rewrite [host.com...] (or /base2/) requests to https:// . Again, I can do this with a directory, but not sure what needs to be done for use with the proxy. So basically, how can I rewrite every request to https:// and make the proxy work for a request with no trailing slash? Thanks for any pointers!
ProxyPass /base2 ajp://localhost:8009/base2
RewriteRule ^/base2$ http://www.example.com/base2/ [R=301,L]
RewriteRule ^/base2$ /base2/ [PT,L]
Jim
ProxyPass /base2 ajp://localhost:8009/base2
ProxyPass /base2/ ajp://localhost:8009/base2/
<Proxy *>
RewriteEngine on
Order allow,deny
Allow from all
RewriteCond %{SERVER_PORT}!^443$
RewriteRule ^.*$ [%{SERVER_NAME}%{REQUEST_URI}...] [L,R]
</Proxy>
Works perfectly!