[Mailman-Users] Virtual Hosts in mm-cfg.py

Richard Barrett r.barrett at openinfo.co.uk
Sun May 23 18:14:57 CEST 2004


On 23 May 2004, at 16:50, bescher wrote:

>
> Hello again
> I apologize for not putting a subject line in my last post.
> I am having several issues one of which are below
>
> I asked the question earlier (thank you Richard for helping me)
> about having more then 1 domain to have mailing lists in)
> he showed me where in defaults.py is the reference
> for it and also in a FAQ
>
> Now I am presuming you DON'T edit defaults.py
> at all and do everything in mm-cfg.py?
>

Correct. If you make changes to Defaults.py it will work BUT they will 
be lost when you install a Mailman update. You site specific changes to 
mm_cfg.py are not lost on updates.

> I have the below in my mm-cfg.py
> and would like to know if this is correct
>
> Thank you for everything
>
>
>
> # Put YOUR site-specific settings below this line.
> IMAGE_LOGOS ='/icons/'
> DEFAULT_EMAIL_HOST = 'mail.test.com'                                   
> DEFAULT_URL_HOST = 'list.tester.org'
>
> VIRTUAL_HOSTS.clear()
> add_virtualhost(listserv.test.com, mail.test.com)
>  add_virtualhost(list.test1.com, mail.test.com)
>
>
> PUBLIC_ARCHIVE_URL = '/pipermail'

The default for this is:

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

why do you want to change it? But you need to ensure that an Alias 
directive(s) in in your Apache web server httpd.conf (or whatever) 
associates the /pipermail/ location with the correct file path, for 
instance:

Alias /pipermail/ /usr/local/mailman/archives/public/

> PRIVATE_ARCHIVE_URL = '/usr/local/mailman/archives/private'
>

The standard default for this is:

DEFAULT_URL_PATTERN = 'http://%s/mailman/'

again, why do you want to change it?

But you need to ensure that the ScriptAlias directive(s) in in your 
Apache web server httpd.conf (or whatever) associates the /mailman/ 
location with the correct file path, for instance:

ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/





More information about the Mailman-Users mailing list