Integrating Zope with Apache via Proxy

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


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


Add the following section or make the changes as per example in httpd.conf and add 
the ProxyPass and ProxyPassReverse lines. Replace the IP with yours:
-------------------------------------------------------------------
#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
<IfModule mod_proxy.c>
ProxyRequests On

#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .com
#</Proxy>

ProxyPass /content http://192.168.xx.xx:8080/content
ProxyPassReverse /content http://192.168.xx.xx:8080/content
ProxyPass /misc_ http://192.168.xx.xx:8080/misc_
ProxyPass /p_ http://192.168.xx.xx:8080/p_

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
ProxyVia On

#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot "/Apps/apache2/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a-domain.com another-domain.edu joes.garage-sale.com

</IfModule>
# End of proxy directives.


*Restart Apache


You can now access your Zope Zserver in Apache via the directory /content
as per example


* NOTE *  If Apache is proxied you will need to add a <base href=  > tag in 
your Zope pages for your internet url. 
ex: <base href="http://www.domain.com/content/">


  --
  Ted Sikora
  ted at unixos2 dot org
  
  
  
