I'm getting the error "Error: Unknown virtual host lists.mydomain.org" when 
creating a list through the web interface.  I have located several FAQs on this 
problem but I have a question on syntax when entering a new line in mm_cfg.py.

Here's the background information:  The CNAME for our list server is 
lists.mydomain.org but the actual servername is hamm.mydomain.org.  All 
references to our list server should be using lists.mydomain.org both email and 
web URLs.  We DO NOT use any URLs with www prepended to them.  I have found and 
read several FAQs concerning this problem but the FAQs assume the web URLs have 
www prepended to them.  One FAQ even states that when you run the 
add_virtualhost command it removes the first part of the domain name, the www 
part before saving the virtual domain name.  We don't want that because we 
don't use www in our URLs to access the web interface.  We only have one host, 
lists.mydomain.org, which I don't consider it to be a virtual host, it's just 
the main host, period.  I've added these two lines to our mm_cfg.py so mailman 
will think it's lists.mydomain.org:

DEFAULT_URL_HOST = 'lists.mydomain.org'
DEFAULT_EMAIL_HOST = 'lists.mydomain.org'

I was going to add this line to mm_cfg.py to fix the "Virtual host" problem:

VIRTUAL_HOSTS = { 'lists.mydomain.org': 'lists.mydomain.org' } 

This is a little different than the examples in the FAQs because the domain 
names for the URLs and the email should be the same in our case, we don't want 
to remove the "lists" part.  Can someone tell me if this is the proper way to 
resolve our "Unknown virtual host" problem?



-- 
We've Got Your Name @ www.mail.com!!!
Get a FREE E-mail Account Today - Choose From 100+ Domains

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

Reply via email to