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 "[email protected]" 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
------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org