Brian Carpenter wrote:
>
>I am running Mailman 2.1.5p1 under cPanel.

I'm not sure how cPanel affects this. See
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.011.htp


>I have question on the URL that shows up for a scrubbed attachment on the
>Archive page. Right now the URL shows up in this format:
>
>Url : /pipermail/listname/attachments/20050302/b37e3e52/0001.gif
>
>How can I change this to:
>
>Url :
>http://host_name/pipermail/listname/attachments/20050302/b37e3e52/0001.gif
>
>Host_name being the virtual host name of the list. Please help. Thanks.

The default setting in Defaults.py for PUBLIC_ARCHIVE_URL is

PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'

Has this been changed or overridden in mm_cfg.py?

If not, 'hostname' comes from inverting the VIRTUAL_HOSTS dictionary
and looking up the list's host_name attribute in the inverted
dictionary. If not found, DEFAULT_URL_HOST is used, so there should
always be something.

The implication is PUBLIC_ARCHIVE_URL must have been changed.

--
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to