[mod_python] Module conflicts on mod_python

Michael Teo michaelteo at bigfoot.com
Mon Oct 7 17:55:51 EST 2002

Hi, I am fortunate enough to be able deploy mod_python on a commercial web

However, I am currently being plagued by this problem.
I am running Apache 1.3.27 with mod_python 2.7.8 and python 2.2.1.
Virtualname hosting is enabled on Apache to allow virtual domainname hosting.

Now, say domain A and domain B has some mod_python publisher scripts which
import a session.py script. Only one session.py in either domain A or domain
B is loaded. However, the implementation of session.py is very different in
both domains and this causes a whole lot of errors on either A or B scripts.

Is there a misconfiguration in my httpd.conf, or is that supposed to be the
part of the feature with mod_python ?
Any advice will be greatly appreciated.
Thanks in advance.

The following are the contents of the .htaccess file in the cgi-bin 
directories. PythonPath are modified accordingly to the domainA and domainB.

AddHandler python-program .py .pyc
PythonHandler mod_python.publisher
PythonPath "sys.path + [ '/home/www/domainA/public_html/cgi-bin' ]

Michael Teo <mailto:michaelteo at bigfoot.com>
PGP  0x6C846A9C  DB:7D:51:D4:4D:AB:97:79:E4:68:D9:07:94:36:D5:1A:6C:84:6A:9C
     0x6937FB05  08:50:A1:4D:2E:45:58:60:DE:71:1F:30:63:54:EF:7B

More information about the Mod_python mailing list