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

Mark Sapiro mark at msapiro.net
Wed Sep 8 17:42:10 CEST 2010


Daniel Maher wrote:
>
>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.


The host portion of those URLs comes from the get_domain() function in
Mailman/Utils.py which gets it from the environment passed by Apache
to the CGI. It uses HTTP_HOST if present or SERVER_NAME if no
HTTP_HOST.

If you set VIRTUAL_HOST_OVERVIEW = No in mm_cfg.py, it will use
DEFAULT_URL_HOST instead which is probably what you want.

I think you can also get Apache to provide the name you want with the
ServerName and UseCanonicalName directives in httpd.conf, but setting
VIRTUAL_HOST_OVERVIEW = No  is probably preferable in your case.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list