Integrating Zope with Apache Rewrite
-----------------------------------------
In Zope add a VHM VirtualHostMonster in the root folder from the add section.
Use any id you want. Leave it unconfigured. Make an 'archives' public folder 
as per example then edit Apache as follows and restart. 
 
Edit conf/httpd.conf


(Apache/2)
Uncomment these proxy modules at the beginning:
-------------------------------------------------------------------
LoadModule proxy_module modules/proxy.dll
LoadModule proxy_connect_module modules/proxy_co.dll
LoadModule proxy_ftp_module modules/proxy_ft.dll
LoadModule proxy_http_module modules/proxy_ht.dll
LoadModule rewrite_module modules/rewrite.dll

(Apache 1.3.x)
Uncomment these proxy modules at the beginning:
-------------------------------------------------------------------
LoadModule proxy_module       libexec/libproxy.so
LoadModule rewrite_module     libexec/mod_rewrite.so

AddModule mod_proxy.c
AddModule mod_rewrite.c


Add the following section as per example in httpd.conf
Replace the domain settings with yours:
-------------------------------------------------------------------

NameVirtualHost *

<VirtualHost *>
     ServerName domain.com
     ServerAlias www.domain.com domain.com
     DocumentRoot /Apps/apache2/htdocs
</VirtualHost>

<VirtualHost *>
     ServerName archives.domain.com
     DocumentRoot /Apps/apache2/archives
         RewriteEngine On
         RewriteLog "/Apps/apache2/logs/rewrite_log"
         RewriteLogLevel 1
         RewriteRule ^/local/ - [L]
         RewriteRule ^/icons/ - [L]
         RewriteRule ^/~(.*) - [L]
         RewriteRule ^/cgi-bin/ - [L]
         RewriteRule ^/(.*) \http://domain.com:8080/VirtualHostBase/http/archives.domain.com:80/archives/VirtualHostRoot/$1
[P]
</VirtualHost>


  --
  Ted Sikora
  ted at os2ports dot com
  
  
  
