Hi,
I have the following apache configuration on a server:
WSGIDaemonProcess drat user=www-data group=www-data processes=6
threads=15 python-path=/var/code/:/var/code/drat/
# example1.com
Listen 192.168.0.14:8000
<VirtualHost 192.168.0.14:8000>
ServerName example1.com
WSGIScriptAlias / /var/code/drat/settings/example1/live.wsgi
WSGIProcessGroup drat
SetEnvIf X_FORWARDED_PROTO https HTTPS 1
</VirtualHost>
# example2.com
Listen 192.168.0.14:8001
<VirtualHost 192.168.0.14:8001>
ServerName example2.com
WSGIScriptAlias / /var/code/drat/settings/example2/live.wsgi
WSGIProcessGroup drat
SetEnvIf X_FORWARDED_PROTO https HTTPS 1
</VirtualHost>
The two websites use the same code, but the live.wsgi sets a different
environment variable as the 'settings' module. There is no caching in
the code.
Sporadically, about 1 in 5000 requests, one seems to read the other's
settings variables. At least, that's the only explanation I can think
of. I'm wondering if this is possible, or perhaps even expected. I'm
pretty sure they are in different python sub-interpreters because by
default WSGIApplicationGroup is set to %{RESOURCE}. But I'm in fairly
unfamiliar territory.
Thanks for taking the time to read this, and please let me know if I
can provide better information.
Apache 2.2.9 prefork, mod_wsgi/2.3, happens in all 4 servers (this is
a load balance group)
Henry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---