Some additional information.
The box I'm using is running Plesk, but I've looked pretty closely at
the httpd.con and httpd.include files and only see reference to
mod_python as the following conditional:
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
I don't see a LoadModule directive that loads mod_python, so I assume
this conditional is not coming into play.
At the moment, I have added these three lines in my http.conf file (I
can find no reference to mod_python):
LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonHome /virt_envs/baseline
WSGISocketPrefix /var/run/wsgi
My vhost.conf file which is included at the end of the Virtualhost
configuration has the following:
Alias /favicon.ico /django_apps/odopod_stage/django/odopod/assets/
favicon.ico
Alias /crossdomain.xml /var/www/vhosts/stage.odopod.com/httpdocs/
crossdomain.xml
Alias /assets/ /django_apps/odopod_stage/django/odopod/assets/
#stage only
Alias /robots.txt /var/www/vhosts/stage.odopod.com/httpdocs/robots.txt
WSGIScriptAlias / /django_apps/odopod_stage/django/odopod/
wsgi_handler_stage.py
WSGIDaemonProcess odopodstage user=apache group=apache processes=1
threads=10
WSGIProcessGroup odopodstage
<Directory /django_apps/odopod_stage/django/odopod>
Order allow,deny
Allow from all
</Directory>
### END VHOST.CONF
Lastly the script I am using to test (which works in embed mode) is:
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
--
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.