[Zope] Virtual Host Moster w/ Apache.

Jason C. Leach jleach@mail.ocis.net
Thu, 14 Feb 2002 16:58:34 -0800


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 host=
s.
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.c=
a/$1 [P]
</IfModule>
</VirtualHost>



--=20
=2E.....................
=2E.... Jason C. Leach
=2E.=20

PGP/GPG Public key at http://www.keyserver.net/
Key ID: 1CF6DA85

=20