Dear Mailmen,

I've been studying this all weekend and finally, *finally* 
understood enough to get it to work.

I wanted to proxypass both sites into zope,
however I needed access to CGI scripts and images
to run mailman.  I had to find the appropriate
rewrite rule to allow this to work.

The zope Zserver serves pages on port 8080.
Apache has the ability to proxy this on port 80
either through "ProxyPass x y" which gives you very
little control or through "RewriteRule x y [proxy]"
which gives you tremendous control.

In zope I have two SiteAcess objects.
One at the root, says "http://morseall.org", "/"
and the other inside /osm says "http://osm.cx", "/"


This worked with the following configuration:
    Redhat Linux 6.2
        apache-1.3.12-2.i386.rpm
        Zope-2.1.6-1.i386.rpm
        Zope-zserver-2.1.6-1.i386.rpm


# added to /etc/httpd/conf/httpd.conf

ScriptAlias /mailman/   "/home/mailman/cgi-bin/"
Alias       /pipermail/ "/home/mailman/archives/public/"


<VirtualHost 24.218.234.247>
        ServerName osm.cx
        RewriteEngine On
        RewriteOptions 'inherit'
        RewriteRule ^/icons(.*)         - [last]
        RewriteRule ^/mailman(.*)       - [last]
        RewriteRule ^/pipermail(.*)     - [last]
        RewriteRule ^/(.*)$             http://localhost:8080/osm/$1 [proxy]
        ProxyPassReverse /              http://localhost:8080/osm/
        ProxyPass        /p_            http://localhost:8080/p_
        ProxyPass        /misc_         http://localhost:8080/misc_
</VirtualHost>


<VirtualHost 24.218.234.247>
        ServerName morseall.org
        RewriteEngine On
        RewriteOptions 'inherit'
        RewriteRule ^/icons(.*)         - [last]
        RewriteRule ^/mailman(.*)       - [last]
        RewriteRule ^/pipermail(.*)     - [last]
        RewriteRule ^/(.*)$             http://localhost:8080/$1 [proxy]
        ProxyPassReverse /              http://localhost:8080/
</VirtualHost>

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to