Error: Unknown virtual host:

Asked by cmnorton on 2009-10-26

This error occurred after fixing the not authorized problem. I can create lists on the command line, but would prefer to from the web.

Here's what's been added to Mailman/mm_cfg.py

##################################################
# Put YOUR site-specific settings below this line.
DEFAULT_URL_PATTERN = 'http://%s:8581/mailman/'
PUBLIC_ARCHIVE_URL = 'http://%(webapps)s:8581/pipermail/%(listname)s'

DEFAULT_URL_HOST = 'webapps.Arlington1.local'
DEFAULT_EMAIL_HOST = 'smtp.town.arlington.ma.us'

I'm going to serialize the problems I'm having, in case they are dependent. (In other words, I'm not going to post a second question about list page access.)

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Mailman Edit question
Assignee:
No assignee Edit question
Solved by:
cmnorton
Solved:
2009-10-27
Last query:
2009-10-27
Last reply:
2009-10-27
Mark Sapiro (msapiro) said : #1

Following

DEFAULT_URL_HOST = 'webapps.Arlington1.local'
DEFAULT_EMAIL_HOST = 'smtp.town.arlington.ma.us'

put

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

Then you should be able to create lists from http://webapps.Arlington1.local:8581/mailman/create

cmnorton (octopusgrabbus) said : #2

Are these changes supposed to be going into the dist's Mailman/mm_cfg.py.dist.in and then everything is rebuilt? Or do the changes go directly into the installed Mailman/mm_cfg.py?

I've made those changes, stopped and restarted mailman, and get the same error.

Mark Sapiro (msapiro) said : #3

You make all changes in the installed mm_cfg.py. See the FAQ at http://wiki.list.org/x/fIA9

Regarding your specific issue, what is the contents of mm_cfg.py now? What is the URL in the address bar of your browser when you get to the create page?

cmnorton (octopusgrabbus) said : #4

Fixed. Although the actual name of my server includes Arlington1.local, I can only hit the web site using webapps. I changed the default URL. All is well.