Hi David, I'm suffering from a coffee underflow error, so am not 100% (yet!), but... David Bear wrote:
RewriteRule ^/z2$ http://127.0.0.1:9080/VirtualHostBase/\ https/%SERVER_NAME}:80/VirtualHostRoot/_vh_z2/ [L,P]
RewriteRule ^/z2/(.*) http://127.0.0.1:9080/VirtualHostBase/\ https/%{SERVER_NAME}:80/VirtualHostRoot/_vh_z2/$1 [L,P]
RewriteRule ^/z2$ http://127.0.0.1:9080/VirtualHostBase/\ http/%SERVER_NAME}:80/VirtualHostRoot/_vh_z2/ [L,P]
RewriteRule ^/z2/(.*) http://127.0.0.1:9080/VirtualHostBase/\ http/%{SERVER_NAME}:80/VirtualHostRoot/_vh_z2/$1 [L,P]
The rules listed above only work to serve content from http://servername/z2 .. They refuse to work for https://servername/z2 (that generates a not found error)
Any other advice on make both urls work?
Yes! Your rewrite rules are all rewriting to port 80, but for SSL you need port 443, so you should have something like: - RewriteRule ^/z2$ http://127.0.0.1:9080/VirtualHostBase/\ https/%SERVER_NAME}:443/VirtualHostRoot/_vh_z2/ [L,P] ^^^ ...for the SSL versions. HTH! -- Regards, PhilK 'I must create my own system or be enslaved by another man's.' - William Blake