aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-30 00:33:37 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-30 00:33:37 +0800
commit194b2b3c9913de46522b51a5552a79a882cea3b6 (patch)
tree7b63f4505565922d9e8dca8ce05c95f7c2ae4e03
parente4c677d83684d317e1e4d3c15904940f162944d8 (diff)
downloaddjango-skaschool-194b2b3c9913de46522b51a5552a79a882cea3b6.tar.bz2
Apache2 conf: default to embedded mode
To fix the problem in daemon mode: o Target WSGI script '/opt/www/skaschool/django_skaschool/django_skaschool/wsgi.py' cannot be loaded as Python module. o ImportError: No module named django.core.handlers.wsgi
-rw-r--r--APACHE2_skaschool.conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/APACHE2_skaschool.conf b/APACHE2_skaschool.conf
index 29902fb..c339ccb 100644
--- a/APACHE2_skaschool.conf
+++ b/APACHE2_skaschool.conf
@@ -3,11 +3,13 @@
WSGIScriptAlias / /opt/www/skaschool/django_skaschool/django_skaschool/wsgi.py
## embedded mode
-#WSGIPythonPath /opt/www/skaschool/django_skaschool:/opt/www/skaschool/env_skaschool/lib/python2.7/site-packages
+WSGIPythonPath /opt/www/skaschool/django_skaschool:/opt/www/skaschool/env_skaschool/lib/python2.7/site-packages
+WSGIProcessGroup %{GLOBAL}
## daemon mode
-WSGIDaemonProcess skaschool python-path=/opt/www/skaschool/django_skaschool:/opt/www/skaschool/env_skaschool/lib/python2.7/site-packages
-WSGIProcessGroup skaschool
+#WSGIDaemonProcess skaschool python-path=/opt/www/skaschool/django_skaschool:/opt/www/skaschool/env_skaschool/lib/python2.7/site-packages
+#WSGIProcessGroup skaschool
+
WSGIApplicationGroup skaschool
# If apache version >= 2.4: