zope.conf
by
daMaestro
—
last modified
Jan 30, 2008 03:46 AM
Example apache virtual host config for using apache -> zope with mod_proxy (very recommended)
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin admin@example.com
DocumentRoot "/var/www/example"
CustomLog "logs/example-com_log" combined
ErrorLog "logs/example-com-error_log"
RewriteEngine On
RewriteRule ^/zope/(.*) http://127.0.0.1:8080/VirtualHostBase/http/example.com:80/VirtualHostRoot/_vh_zope/$1 [P,L]
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/example.com:80/example.com/VirtualHostRoot/$1 [P,L]
</VirtualHost>
Added Reading
- Apache Virtual Hosts
http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost - Apache Name Based Virtual Hosts
http://httpd.apache.org/docs/2.2/mod/core.html#namevirtualhost

