Add a missing wsgi.conf for the python 2.7 version.
This commit is contained in:
parent
b0e18dca55
commit
79fc061a2b
1 changed files with 28 additions and 0 deletions
28
wsgi.conf
Normal file
28
wsgi.conf
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
LoadModule wsgi_module modules/mod_wsgi.so
|
||||||
|
WSGIPythonHome /opt/python/run/venv
|
||||||
|
WSGISocketPrefix run/wsgi
|
||||||
|
WSGIRestrictEmbedded On
|
||||||
|
|
||||||
|
<VirtualHost *:80>
|
||||||
|
|
||||||
|
Alias /static /opt/python/current/app/
|
||||||
|
<Directory /opt/python/current/app/>
|
||||||
|
Order allow,deny
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
WSGIScriptAlias / /opt/python/current/app/application.py
|
||||||
|
|
||||||
|
|
||||||
|
<Directory /opt/python/current/app/>
|
||||||
|
Order allow,deny
|
||||||
|
Allow from all
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
WSGIDaemonProcess wsgi processes=1 threads=15 display-name=%{GROUP} \
|
||||||
|
python-path=/opt/python/current/app:/opt/python/run/venv/lib/python2.7/site-packages user=wsgi group=wsgi \
|
||||||
|
home=/opt/python/current/app
|
||||||
|
WSGIProcessGroup wsgi
|
||||||
|
</VirtualHost>
|
Reference in a new issue