[Mailman-Users] mailman web interface via reverse proxy ; hostname is set properly on list pages, but not on base listinfo

Daniel Maher dma+mailman at witbe.net
Wed Sep 8 10:31:52 CEST 2010


Hello,

I have made the mailman web interface accessible via a reverse proxy on 
a publically-accessible web server.  After reading through the 
documentation and list archives, i set the hostname variables in 
mm_cfg.py, and fixed the hostnames associated with the existing lists 
via the withlist tool.  On each of the individual list pages (and list 
headers / footers / etc.) the hostnames are set properly ; in fact, this 
was very straightforward to do, and works perfectly.

However, on the base "listinfo" page the hostname appears to be set as 
the IP address of the mailman machine (not the reverse proxy), which has 
repercussions on the interface as a whole.

For example, via http://proxy.dom.ain/mailman/admin/list all of the 
links on the page point (properly) to 
http://proxy.dom.ain/mailman/admin/list/* as expected ; all except the 
final "Overview of all ,x.dom.ain mailing lists" link, which points to 
http://1.2.3.4/mailman/listinfo .

Likewise, on http://proxy/mailman/listinfo the header states "1.2.3.4 
Mailing Lists", and makes references to "mailing lists on 1.2.3.4", and 
to contact "mailman at 1.2.3.4" for problems.

How can these base hostnames be changed to reflect the values that are 
correct (as has been done on the individual lists), instead of the IP 
address of the machine that mailman is hosted on ?

I am running mailman-2.1.9-4.el5 and httpd-2.2.3-43.el5.centos on CentOS 
5.5.

The relavent excerpt from mm_cfg.py :

#DEFAULT_URL_HOST   = fqdn
#DEFAULT_EMAIL_HOST = fqdn
DEFAULT_URL_HOST   = "proxy.dom.ain"
DEFAULT_EMAIL_HOST = "mx.dom.ain"
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)


Apache (on the mailman server) :

ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
<Directory /usr/lib/mailman/cgi-bin/>
     AllowOverride None
     Options ExecCGI
     Order allow,deny
     Allow from all
</Directory>
RedirectMatch ^/mailman[/]*$ http://proxy.dom.ain/mailman/listinfo


Apache (on the proxy) :

# mailman
<IfModule mod_proxy.c>
   RewriteRule ^\/mailman$ mailman\/ [R]
   ProxyPass /mailman/ http://1.2.3.4/mailman/
   ProxyPassReverse /mailman/ http://1.2.3.4/mailman/
</IfModule>


Thank you for your kind consideration, and have a good day.

-- 
Daniel Maher <dma PLUS mailman AT witbe DOT net>
"The Internet is completely over." -- Prince


More information about the Mailman-Users mailing list