[Mailman-Users] Configuration problem - virtual domains URL
Marc Perkel
marc at perkel.com
Mon Nov 26 03:12:37 CET 2007
Mark Sapiro wrote:
> Marc Perkel wrote:
>
>
>> I'm trying to figure out how to do a slightly unusual configuration.
>> Normally mailman wants to use URLs like http://www.domain.com/mailman .
>> But what I want to do is have url's that look like
>> http://mailman.domain.com.
>>
>> So - in my config file I have:
>>
>> DEFAULT_EMAIL_HOST = 'ctyme.com'
>> DEFAULT_URL_HOST = 'ctyme.com'
>> DEFAULT_URL_PATTERN = 'http://mailman.%s/'
>>
>> Seems to work for managing the list but when I try to use /create or
>> /listinfo instead of http://mailman.ctyme.com I get
>> http://mailman.mailman.ctyme.com
>>
>> What I don't understand is why the double mailman and how do I fix it?
>>
>
>
> It is somewhat complicated, but the bottom line is it will work the way
> you expect if you set
>
> VIRTUAL_HOST_OVERVIEW = Off
>
> in mm_cfg.py.
>
> In a Mailman virtual host environment (the default), the host name that
> is plugged into DEFAULT_URL_PATTERN is in some cases obtained from the
> host portion of the URL that invoked the CGI. This clearly doesn't
> work if DEFAULT_URL_PATTERN has more than just %s in the host portion.
>
> If VIRTUAL_HOST_OVERVIEW = Off, the host name used is DEFAULT_URL_HOST.
>
>
Thanks - that gets me a lot closer. listinfo works now. Create is
broken, but it's not as broken as it was. It used to go to an invalid
url. Now it just doesn't work. But I'll look into that. Thanks for your
help.
More information about the Mailman-Users
mailing list