10 Sep
2002
10 Sep
'02
1:45 p.m.
Stefan H. Holek wrote:
You are missing the VirtualHostRoot keyword in your rewrite rule. Also note that HTTP_HOST may include the port (if it is not 80 IIRC).
RewriteRule ^/(.*) \ http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/ $1 [L,P]
This "http/%{HTTP_HOST}:80/VirtualHostRoot/" is dangerous. More exactly, the trailing :80 will bite you if the client sends the port together with the hostname. The standard does not mandate one or the other, and most clients don't do this if port == 80, but wget for instance does. My solution is to check if there is a trailing :80 in HTTP_HOST and then use an other rewrite rule. cheers, oliver