[Mailman-Users] Configuration problem - virtual domains URL
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? Thanks in advance. -- 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&file=faq01.027.htp
Re: [Mailman-Users] Configuration problem - virtual domains URL
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. -- Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers, San Francisco Bay Area, Californiabetter 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&file=faq01.027.htp
Re: [Mailman-Users] Configuration problem - virtual domains URL
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. -- 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&file=faq01.027.htp