[Mailman-Users] Domain repeated in URL

Mark Sapiro msapiro at value.net
Sun Jan 23 18:51:31 CET 2005


mailman at mathesonuk.com wrote:

>I have recently set up a new installation of Mailman 2.1.5. All is 
>working OK but the URLs generated in the admin interface have the 
>domain name repeated.
>
>e.g. In the main list webpage at 
>http://mailman.mydomain.org/mailman/admin
>
>The link to the Mailman list appears as:
>http://mailman.mydomain.org/mailman/mailman.mydomain.org/admin/mailman
>
>I have tried altering Defaults.py but can't seem to get it working.
>
>Defaults.py includes:
>DEFAULT_EMAIL_HOST = 'mydomain.org'
>DEFAULT_URL_HOST = 'mailman.mydomain.org'
>DEFAULT_URL_PATTERN = 'http://%s/mailman/'
>
<snip>

You shouldn't be changing Defaults.py. See
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.021.htp

This isn't the problem though (unless you have things in mm_cfg.py that
override your Defaults.py changes). The problem is that changes to
DEFAULT_EMAIL_HOST, DEFAULT_URL_HOST and DEFAULT_URL_PATTERN don't
affect web_page_url for existing lists. You have to run fix_url.py
(runs under bin/withlist; run bin/fix_url.py for instructions) to
update existing lists after you change any of these. See
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp

--
Mark Sapiro <msapiro at value.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