[Zope] apache rewrite rules redux
Chris Withers
chris at simplistix.co.uk
Wed May 24 03:35:14 EDT 2006
David Bear wrote:
> # see http://betabug.ch/zope/witch
> 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]
These rules need to appear in the virtual host that's listening on port
443, my suspicion is that it's being applied to the virtual host
listening on port 80, and so doing nothing.
> 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]
In both cases, I see no need for two rules, just the one should suffice:
RewriteRule ^/z2(.*) http://127.0.0.1:9080/VirtualHostBase/\
http/%{SERVER_NAME}:80/VirtualHostRoot/_vh_z2$1 [L,P]
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list