Re: virtual host shuffle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux