httpd.conf Rewrite rules with ZOPE to use mailman.
Hi all,
I'm running a Zope instance that requires me to have re-write rules (below) in httpd.conf that are not compatible with Mailman. I can use mailman if I don't use the Zope re-write rules or I can use Zope but not mailman with the re-write rules below. This seems like a black art to me. Is there a way to change the re-write rules so that they both work at the same time? Thanks!
NameVirtualHost 72.51.39.124:80
<VirtualHost 72.51.39.124:80>
ServerName brainimagingnews.net
ServerAdmin webmaster@brainimagingnews.net
ProxyPass /
http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... </VirtualHost>
<VirtualHost 72.51.39.124:80>
ServerName www.brainimagingnews.net
# ServerAlias * # redirects everything Redirect permanent / http://brainimagingnews.net/ </VirtualHost>
My mailman.conf looks like this:
# # httpd configuration settings for use with mailman. #
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
On Sat, 1 Dec 2007, Ignacio Valdes wrote:
I'm running a Zope instance that requires me to have re-write rules (below) in httpd.conf that are not compatible with Mailman. I can use mailman if I don't use the Zope re-write rules or I can use Zope but not mailman with the re-write rules below. This seems like a black art to me. Is there a way to change the re-write rules so that they both work at the same time? Thanks!
The easiest thing may be to set up another NameVirtualHost
mailman.brainimagingnews.net to run mailman that doesn't have the re-write
rules.
========================================================== Chris Candreva -- chris@westnet.com -- (914) 948-3162 WestNet Internet Services of Westchester http://www.westnet.com/
Also, my mailman.conf file looks like this which should redirect to the archives and everything else properly but doesn't seem too. -- IV
# # httpd configuration settings for use with mailman. #
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
# Uncomment the following line, replacing www.example.com with your server's # name, to redirect queries to /mailman to the listinfo page (recommended).
RedirectMatch ^/mailman[/]*$ http://72.51.39.124/mailman/listinfo
On Dec 1, 2007 10:21 PM, Ignacio Valdes <ivaldes@hal-pc.org> wrote:
Hi all,
I'm running a Zope instance that requires me to have re-write rules (below) in httpd.conf that are not compatible with Mailman. I can use mailman if I don't use the Zope re-write rules or I can use Zope but not mailman with the re-write rules below. This seems like a black art to me. Is there a way to change the re-write rules so that they both work at the same time? Thanks!
NameVirtualHost 72.51.39.124:80
<VirtualHost 72.51.39.124:80> ServerName brainimagingnews.net ServerAdmin webmaster@brainimagingnews.net ProxyPass /
http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... </VirtualHost>
<VirtualHost 72.51.39.124:80> ServerName www.brainimagingnews.net
# ServerAlias * # redirects everything Redirect permanent / http://brainimagingnews.net/ </VirtualHost>
My mailman.conf looks like this:
# # httpd configuration settings for use with mailman. #
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
Finally, I changed using withlist the URL to the IP address and that made things point to things in a better fashion, but now I get the infamous message:
Forbidden
You don't have permission to access /pipermail/linuxmednews-announce on this server. Apache/2.2.6 (Fedora) Server at 7 2.5 1.3 x9 .1 24 (remove spaces and x for the real IP) Port 80
I've checked the permission with check_perms and I did the chmod o-x private thing but no change, it is still forbidden to go to the archives.
-- IV
On Dec 3, 2007 12:43 AM, Ignacio Valdes <ivaldes@hal-pc.org> wrote:
Also, my mailman.conf file looks like this which should redirect to the archives and everything else properly but doesn't seem too. -- IV
# # httpd configuration settings for use with mailman. #
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
# Uncomment the following line, replacing www.example.com with your server's # name, to redirect queries to /mailman to the listinfo page (recommended).
RedirectMatch ^/mailman[/]*$ http://72.51.39.124/mailman/listinfo
On Dec 1, 2007 10:21 PM, Ignacio Valdes <ivaldes@hal-pc.org> wrote:
Hi all,
I'm running a Zope instance that requires me to have re-write rules (below) in httpd.conf that are not compatible with Mailman. I can use mailman if I don't use the Zope re-write rules or I can use Zope but not mailman with the re-write rules below. This seems like a black art to me. Is there a way to change the re-write rules so that they both work at the same time? Thanks!
NameVirtualHost 72.51.39.124:80
<VirtualHost 72.51.39.124:80> ServerName brainimagingnews.net ServerAdmin webmaster@brainimagingnews.net ProxyPass /
http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/brainimagingnews.net:80/brainimag... </VirtualHost>
<VirtualHost 72.51.39.124:80> ServerName www.brainimagingnews.net
# ServerAlias * # redirects everything Redirect permanent / http://brainimagingnews.net/ </VirtualHost>
My mailman.conf looks like this:
# # httpd configuration settings for use with mailman. #
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ <Directory /usr/lib/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
Ignacio Valdes wrote:
You don't have permission to access /pipermail/linuxmednews-announce on this server. Apache/2.2.6 (Fedora) Server at 7 2.5 1.3 x9 .1 24 (remove spaces and x for the real IP) Port 80
I've checked the permission with check_perms and I did the chmod o-x private thing but no change, it is still forbidden to go to the archives.
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
The above looks good, so I think the issue may be that /var/lib/mailman/archives/private has to be searchable by the web server. That directory must be in Mailman's group and must have permissions drwxrws--x, or if you choose to remove the world searchable permission and make it drwxrws---, you must make the owner (not the group) be the web server user. See the 'Warning' box at <http://www.list.org/mailman-install/node9.html>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Christopher X. Candreva
-
Ignacio Valdes
-
Mark Sapiro