[Mailman-Users] DEFAULT_HOST_NAME | virtual host | 'Admin Lin ks' domain definition

Abe Scwartz sloween at hotmail.com
Thu Dec 6 20:30:07 CET 2001

First off, is there any additional documentation for the apps within 
$BASEDIR/bin, like list_move and such?

But back to my initial problem -

Within $BASEDIR/Mailman/Cgi/admin.py, the line:

legend = "%s mailing lists - Admin Links" % mm_cfg.DEFAULT_HOST_NAME

I'd like to be able to set the "%s" on a per-vhost basis (either dynamically 
via HTTP_HOST or statically in some way). So that when someone visits 
domain1.com/mailman/admin, the page is branded with domain1.com. View the 
'Admin Links' page (http://something.com/mailman/admin) to see what I mean.

And likewise, visiting domain2.com/mailman/admin should be branded with 
domain2.com. Can this be accomplished with something like "move_list"?

So the text at the 'Admin Links' page should read,

For http://domain1.com/mailman/admin -

"Below is the collection of publicly-advertised mailman mailing lists on 

For http://domain2.com/mailman/admin -

"Below is the collection of publicly-advertised mailman mailing lists on 

Please let me know if this doesn't make sense, or if anyone has any other 

Thanks again for your assistance.

>From: Johnson David R <david.johnson at hamptonu.edu>
>To: 'Abe Scwartz' <sloween at hotmail.com>
>Subject: RE: [Mailman-Users] DEFAULT_HOST_NAME | virtual host | 'Admin Lin 
>ks' domain definition
>Date: Thu, 6 Dec 2001 12:36:22 -0500
>I am not sure what you mean, can you explain in detail.
>-----Original Message-----
>From: Abe Scwartz [mailto:sloween at hotmail.com]
>Sent: Thursday, December 06, 2001 12:05 PM
>To: mailman-users at python.org
>Subject: [Mailman-Users] DEFAULT_HOST_NAME | virtual host | 'Admin
>Links' domain definition
>All -
>I'm hosting mailing lists for two domains - primary.com and secondary.com.
>primary.com is defined as DEFAULT_HOST_NAME within Mailman/Defaults.py. I'm
>using mailman-2.0.5 on RH6.2/x86.
>Currently, both http://lists.primary.com/mailman/admin/ and
>http://lists.secondary.com/mailman/admin/ display the 'Admin Links' page
>containing the text, "Below is the collection of publicly-advertised 
>mailing lists on lists.primary.com". I'd like for the text to reflect the
>hostname requested, e.g.
>if URL='http://lists.primary.com/mailman/admin/', the text should read ,
>"mailing lists on lists.primary.com".
>if URL='http://lists.secondary.com/mailman/admin/', the text should read ,
>"mailing lists on lists.secondary.com".
>I discovered a patch at
>for an older version of mailman, but wasn't sure if|how this was 
>in current versions, or how this might be enabled. The hosted sites would
>like their /mailman/admin page to display their domain in the text, and not
>the value of DEFAULT_HOST_NAME.
>Or is this perhaps dependent on apache in some way?
>Any help anyone can offer would be greatly appreciated.
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>Mailman-Users maillist  -  Mailman-Users at python.org

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

More information about the Mailman-Users mailing list