mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
wsgi.py customized for use mod_wsgi with apache module
This commit is contained in:
parent
decd5ab4a6
commit
f8c08cb719
2 changed files with 10 additions and 1 deletions
|
@ -185,6 +185,12 @@ webvirtcloud RUNNING pid 24185, uptime 2:59:14
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Apache mod_wsgi configuration
|
||||||
|
```
|
||||||
|
WSGIDaemonProcess webvirtcloud threads=2 maximum-requests=1000 display-name=webvirtcloud
|
||||||
|
WSGIScriptAlias / /srv/webvirtcloud/webvirtcloud/wsgi.py
|
||||||
|
```
|
||||||
|
|
||||||
#### Install final required packages for libvirtd and others on Host Server
|
#### Install final required packages for libvirtd and others on Host Server
|
||||||
```bash
|
```bash
|
||||||
wget -O - https://clck.ru/9V9fH | sudo sh
|
wget -O - https://clck.ru/9V9fH | sudo sh
|
||||||
|
|
|
@ -7,7 +7,10 @@ For more information on this file, see
|
||||||
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
execfile('/srv/webvirtcloud/venv/bin/activate_this.py', dict(__file__='/srv/webvirtcloud/venv/bin/activate_this.py'))
|
||||||
|
|
||||||
|
import os, sys
|
||||||
|
sys.path.append('/srv/webvirtcloud')
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webvirtcloud.settings")
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
Loading…
Reference in a new issue