Gilles Lenfant wrote at 2003-1-24 20:47 +0100:
I'm trying to make some complex RewriteRule to map :
http://nick1.mydomain.com/pathx -> Zope /nick1/pathx
http://nick2.mydomain.com/pathy -> Zope: /nick2/pathy
...
I thought I had some skills in that matter but...
<VirtualHost *> ServerName *.mydomain.com RewriteEngine on RewriteRule ^(.*)\.mydomain\.com/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1/VirtualHostRoo t/$2 [P,L] </VirtualHost>
... doesn't work
I inspected the Z2.log and found that the second group matches when the first does'nt : When getting http://foo.mydomain.com/bar , the path in Z2.log is :
/VirtualHostBase/http/foo.mydomain.com:80//VirtualHostRoot/bar
...when I expected...
/VirtualHostBase/http/foo.mydomain.com:80/foo/VirtualHostRoot/bar Add rewrite logging and lock at the log file.
Dieter