Differences between revisions 2 and 3
Revision 2 as of 2008-07-31 14:00:39
Size: 1777
Editor: dunxd
Comment:
Revision 3 as of 2011-10-25 16:38:32
Size: 1708
Editor: msapiro
Comment: Expanded the VIRTUAL_HOSTS = example.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/13303847 #pragma page-filename DOC/versions/13303849
Line 30: Line 30:
 VIRTUAL_HOSTS = { 'www.do.main.one': 'do.main.one',  VIRTUAL_HOSTS = { DEFAULT_URL_HOST: DEFAULT_EMAIL_HOST,
                  
'www.do.main.one': 'do.main.one',
Line 35: Line 36:
to mm_cfg.py. to mm_cfg.py, but if you do this, for esoteric Python reasons, you can't add additional entries with add_virtualhost()
Line 37: Line 38:
In the above example, it would even have been enough to just say In the first example above, it would even have been enough to just say
Line 47: Line 48:
Also see FAQ 4.62 [[../4.62 Why doesn't my public list appear on the listinfo overview page? aka Why can't I create a list from the web?|4.62 Why doesn't my public list appear on the listinfo overview page? aka Why can't I create a list from the web?]] Also see FAQ 4.62 [[DOC/4.62 Why doesn't my public list appear on the listinfo overview page? aka Why can't I create a list from the web?]]
Line 49: Line 50:
''Last changed on Wed Jun 20 02:43:25 2007 by'' Mark Sapiro
<<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>
This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].
This is one of many [[../Frequently Asked Questions|Frequently Asked Questions]].

4.36. Creating a new list from Web CGI result in "Error: Unknown virtual host"

even if "newlist" from command line was successful.

Answer: Virtual domains appearing in URLs that are used to access the Mailman CGI have to be registered with Mailman. This is because Mailman can't know the corresponding mail virtual domain from looking at the URL alone.

Common example: URL to create list is

 http://www.do.main/mailman/create but

list mail for this list will go to

 listname@do.main.

In this case, you would have to register this domain by adding

 add_virtualhost( 'www.do.main', 'do.main' )

to mm_cfg.py.

Alternatively you can specify all such mappings in one go by adding

 VIRTUAL_HOSTS = { DEFAULT_URL_HOST: DEFAULT_EMAIL_HOST,
                   'www.do.main.one': 'do.main.one',
                   'www.do.main.two': 'do.main.two',
                   ... }

to mm_cfg.py, but if you do this, for esoteric Python reasons, you can't add additional entries with add_virtualhost()

In the first example above, it would even have been enough to just say

 add_virtualhost( 'www.do.main' )

and so on, because the add_virtualhost() helper function strips off the first part of the given domain name and uses the remainder as the mail domain name, if only one argument has been given.

See Defaults.py for more explanations and examples.

Also see FAQ 4.62 DOC/4.62 Why doesn't my public list appear on the listinfo overview page? aka Why can't I create a list from the web?

This is one of many Frequently Asked Questions.

MailmanWiki: DOC/4.36 Creating a new list from Web CGI result in "Error- Unknown virtual host" (last edited 2015-02-10 06:24:50 by JimTittsler)