1777
Comment:
|
← Revision 6 as of 2015-02-10 06:24:50 ⇥
1819
remove duplicate FAQ number
|
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/4030705 |
Line 3: | Line 3: |
Line 30: | Line 31: |
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 37: |
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 39: |
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 49: |
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 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?]] |
Line 49: | Line 51: |
''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 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.