Virtual Host Moster w/ Apache.
hi, I have some virtual hosts behind an Apache proxy, I use Apache so I can have unique log files for each site. But some times I get urls that look like: /domain/domain/domain/file In the root folder of Zope I have a 'domain' folder for each domain we hosts. It's probably some combination of a SiteRoot or Apache's rewrieing. Below is one of my apache VirtualSites. Zope is behind a firewall thus the 9673 port. <VirtualHost 192.168.100.100> ServerAdmin webmaster@jsthrower.com ServerName riverspirit.ca ServerAlias www.riverspirit.ca #DocumentRoot /var/www/riverspirit.ca/riverspirit ErrorLog /var/log/apache/riverspirit.ca-error.log TransferLog /var/log/apache/riverspirit.ca-access.log <IfModule mod_rewrite.c> RewriteEngine On RewriteLog "/var/log/apache/rewrite_log" RewriteLogLevel 0 RewriteRule ^/local/ - [L] RewriteRule ^/(.*) http://www.riverspirit.ca:9673/riverspirit.ca/$1 [P] </IfModule> </VirtualHost> -- ...................... ..... Jason C. Leach .. PGP/GPG Public key at http://www.keyserver.net/ Key ID: 1CF6DA85
-> <IfModule mod_rewrite.c> -> RewriteEngine On -> RewriteLog "/var/log/apache/rewrite_log" -> RewriteLogLevel 0 -> RewriteRule ^/local/ - [L] -> RewriteRule ^/(.*) http://www.riverspirit.ca:9673/riverspirit.ca/$1 [P] -> </IfModule> Hmm... I don't know anything about VirtualHostMonster, but following the instructions in one of my Zope books I have the following VirtualHost entry for use w/VirtualHostMonster: <VirtualHost 1.2.3.4:80> ServerName www.mydomain.com ServerAdmin webmaster@mydomain.com ServerAlias mydomain.com *.mydomain.com ErrorLog logs/mydomain.com-error_log CustomLog logs/mydomain.com-access_log common # RewriteLog /var/log/httpd/rewrite.log # RewriteLogLevel 2 RewriteEngine on RewriteRule ^/(.*) http://1.2.3.4:8080/VirtualHostBase/http/www.mydomain.com:80/my_domains_fold... [P] # This should _never_ be reached. DocumentRoot /www/docs/host.some_domain.com </VirtualHost> Notice that my rewrite rule includes "VirtualHostBase" and "VirtualHostRoot", which I believe are required for VirtualHostMonster. Your rewrite rule had no such information, which may be why it's failing. Thanks, Derek
participants (2)
-
Derek Simkowiak -
Jason C. Leach