#26383: Incomplete/incorrect documentation about using wsgi with Apache when
project using virtualenv
-------------------------------------+-------------------------------------
Reporter: zshimanchik | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Keywords: wsgi, virtualenv,
| apache, documentation, modwsgi
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/
I've tryied to setup apache VirtualHost for my project with virtualenv,
using mod_wsgi in daemon mode. Project uses python2, but I think it
doesn't matter.
However following documentation I've tryied to use
{{{
WSGIDaemonProcess example.com python-
path=/path/to/mysite.com:/path/to/venv/lib/python2.7/site-packages
}}}
But this is not enough. besides python-path there must be set python-home
with path to virtualenv directory. here is example of my working
configuration:
{{{
<VirtualHost site1:80>
ServerName site1
WSGIDaemonProcess site1 python-
path=/home/neuron/projects/django_zs_testprj/zs_testprj:/home/neuron/projects/django_zs_testprj/env/lib/python2.7
/site-packages python-home=/home/neuron/projects/django_zs_testprj/env
WSGIProcessGroup site1
WSGIScriptAlias /
/home/neuron/projects/django_zs_testprj/zs_testprj/zs_testprj/wsgi.py
<Directory /home/neuron/projects/django_zs_testprj/zs_testprj/zs_testprj>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
}}}
Archlinux, Python 2.7.11, Apache/2.4.18, mod_wsgi2 4.4.22-1
--
Ticket URL: <https://code.djangoproject.com/ticket/26383>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.a2d1944a31318cf3c5a62ff7ef717afb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.