This is a discussion on virtualhost/rewrite help needed within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi I have a (probably simple) vh (and maybe rewrite?) problem - the rule is simple at least and should work ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I have a (probably simple) vh (and maybe rewrite?) problem - the rule is simple at least and should work IMO - it's strange to me why it doesn't. This is what i do: NameVirtualHost 217.160.75.67 ### ...several vh... <VirtualHost openspirit.de> ServerName openspirit.de ServerAlias www.openspirit.de RewriteEngine on RewriteLogLevel 1 RewriteRule ^/(.*)$ http://coforum.org:9080/VirtualHostBase/http/openspirit.de:80/openspirit/VirtualHostRoot/$1 [P] </VirtualHost> The domain openspirit.de is simply forwarded to the servers IP (217.160.75.67). Accessing http://openspirit.de brings me to the main DocumentRoot, this VirtualHost section is untouched, instead the default VH is served as can be seen from the default access_log: 62.146.33.60 - - [22/Jul/2003:01:45:25 +0200] "GET / HTTP/1.1" 200 545 .. Here's the default VH section... <VirtualHost 217.160.75.67> ### ... DocumentRoot /home/u8491898 ErrorLog /var/log/httpd/u8491898-error_log CustomLog /var/log/httpd/u8491898-access_log common ### .... </VirtualHost> Why does it not use my VH section ?? An analogue config works, with the difference that the domain is forwarded from a dyndns service not a "real" domain provider's header redirect (here) (I tried also with URL-hiding, same effect) (Apache 1.3.19) TIA for hints, Florian -- Florian Konnertz --- http://www.florian-konnertz.de http://openspirit.homelinux.net/noowiki/FrontPage ZWiki about all topics, especially consciousness research and wisdom traditions |
| Thread Tools | |
| Display Modes | |
|
|