Error: Unknown virtual host:

Asked by cmnorton

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
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.

Revision history for this message
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?

Revision history for this message
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.