From 194b2b3c9913de46522b51a5552a79a882cea3b6 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Wed, 30 Apr 2014 00:33:37 +0800 Subject: 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 --- APACHE2_skaschool.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'APACHE2_skaschool.conf') 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: -- cgit v1.2.2