[Mailman-Users] Virtual hosts question

2011-01-13 Thread Rob
Hi,

I'm just turning virtual hosts on for the first time in a stable installation 
of Mailman 2.1.13 (the distribution provided with Mac OS X Server 10.6)

I rewrote my mm_cfg.py file like this:

# Put YOUR site-specific settings below this line.
MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'acvr.org'
DEFAULT_URL_HOST = 'www.acvr.org'
VIRTUAL_HOST_OVERVIEW='ON'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
add_virtualhost(www.lists.ecvdi.org, lists.ecvdi.org)
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
PUBLIC_ARCHIVE_URL = 'https://%(hostname)s/pipermail/%(listname)s'
ALLOW_SITE_ADMIN_COOKIES = Yes
VERP_PROBES = Yes
VERP_PASSWORD_REMINDERS = Yes
VERP_PERSONALIZED_DELIVERIES = Yes
VERP_DELIVERY_INTERVAL = 1
VERP_CONFIRMATIONS = Yes
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes
OWNERS_CAN_CHANGE_MEMBER_PASSWORDS = Yes  
IMAGE_LOGOS = '/icons/'


But when I use mailmanctl to restart I get this error:

Traceback (most recent call last):
  File ./mailmanctl, line 106, in module
from Mailman import mm_cfg
  File /usr/share/mailman/Mailman/mm_cfg.py, line 50, in module
add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
NameError: name 'www' is not defined


Thanks in advance for your help.

-Rob McLear
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Virtual hosts question

2011-01-13 Thread Chris Tandiono
On 13 Jan 2011, at 11:14 , Rob wrote:
 
 But when I use mailmanctl to restart I get this error:
 
 Traceback (most recent call last):
  File ./mailmanctl, line 106, in module
from Mailman import mm_cfg
  File /usr/share/mailman/Mailman/mm_cfg.py, line 50, in module
add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
 NameError: name 'www' is not defined
 
 
 Thanks in advance for your help.
 
 -Rob McLear

That is a Python error--you need to put quotes aroudn www.lists.eavdi.org; 
otherwise, it looks for a variable named www so it can access the property 
lists. Same thing with lists.eavdi.org.

Chris
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Virtual hosts question

2011-01-13 Thread Rob
On Jan 13, 2011, at 3:21 PM, Chris Tandiono wrote:

 On 13 Jan 2011, at 11:14 , Rob wrote:
 
 But when I use mailmanctl to restart I get this error:
 
 Traceback (most recent call last):
 File ./mailmanctl, line 106, in module
   from Mailman import mm_cfg
 File /usr/share/mailman/Mailman/mm_cfg.py, line 50, in module
   add_virtualhost(www.lists.eavdi.org, lists.eavdi.org)
 NameError: name 'www' is not defined
 
 
 Thanks in advance for your help.
 
 -Rob McLear
 
 That is a Python error--you need to put quotes aroudn www.lists.eavdi.org; 
 otherwise, it looks for a variable named www so it can access the property 
 lists. Same thing with lists.eavdi.org.
 
 Chris


Thanks, that worked for me. 

I don't seem to have virtual hosts woking properly yet, but I need to do some 
more RTFM'ing before I bother the list again.

-Rob 
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org