David S. <davidschein <at> alumni.tufts.edu> writes:

> 
> I have 3 web mod_python apps running on different ports.  It behaves as if it
> is mixing up ports.  

FIXED.

To each virtual host with mod_python add: 
  PythonInterpreter some_unique_name

The key to my confusion was this snippet:
"... all scripts in the same virtual server execute in the same subinterpreter,
but scripts in different virtual servers execute in different subinterpreters
with completely separate namespaces."

The key to understanding what was happening is this sentence:
"Default behaviour is to name interpreters using the Apache virtual server name
(ServerName directive)."

I have the same ServerName for each virtual host, just different ports.  So
mod_python was (it seems) using the same subinterpreter, which resulted in the
seemingly random server responses I got.

references:
http://www.modpython.org/live/current/doc-html/pyapi-interps.html
http://www.modpython.org/live/current/doc-html/dir-other-pi.html

Peace,
David S.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to