[Mailman-Users] Newbie struggling with add_virtualhosts

Mark Sapiro msapiro at value.net
Fri Feb 3 06:15:52 CET 2006


Alan Chandler wrote:
>
>Just to be clear - what I mean by this is if I visit ANY of the web sites 
>www.home, mail.home, roo.home, localhost  I want to get the same set of lists 
>(they happen to be a set of gated newsgroups), if I visit 
>www.chandlerfamily.org.uk I get another set (genuine mailing lists created by 
>me)


Yes, I understood that.


>> This is all OK, but it probably doesn't do what you want. What it does
>> do is it allows lists to be created in any of the domains
>> www.chandlerfamily.org.uk, mail.home, www.home, roo.home and localhost
>> and all of these but the first will have the associated email domain
>> mail.home.
>
>You say it doesn't do what I want - but I can't see what I should therefore 
>do.  Is what I want to do possible?


Yes, see below.

>> But, lists created in the mail.home domain for example will only appear
>> on the mail.home listinfo page; lists in the www.home domain will only
>> appear on the www.home ,listinfo page, and so forth.
>
>Its the "lists created in the mail.home domain" bit I only half understand.  
>If I have understood everything correctly that I have read, there is a 
>mailing list parameter called web_page_url.  It doesn't appear on any of the 
>lists configuration options but I could run a python script called fix_url.py 
>to change it.  It is this parameter which is looked up in the virtualhosts 
>table to get an e-mail host.


That's essentially correct.


>The bit I don't understand is how does the e-mail host effect what is 
>displayed on a partitular listinfo page based on the url the user used to 
>access that page.


It doesn't. What determines whether or not a list is displayed
(assuming it's public) on the listinfo and admin overviews is whether
or not the host name part of it's web_page_url attribute matches the
host name part of the accessing URL.


>> See
>> <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.062.htp>
>> for a more detailed discussion.
>
>I read through that, and I understand everything it says (I think:-) ), but I 
>doesn't appear to answer my question.

It attempts to tell you what you need to do in this case, but perhaps
it isn't clear.

You need to have two entries in your VIRTUAL_HOSTS dictionary as
created by

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

and for example

add_virtualhost('www.home', 'mail.home')

Then you need to create all your lists in one or the other of the two
domains 'www.chandlerfamily.org.uk' (DEFAULT_URL_HOST) or 'www.home'.

Then you need to configure your web server to rewrite all the other
(mail.home, roo.home and localhost) host names as www.home.

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

-- 
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