From: Loic & Edelberto Date: Thu, 13 Mar 2014 13:16:38 +0000 (-0300) Subject: Apache config for FIBRE X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=a8b0e0bd2620c4501f06e4925ef43cb8c63b2777 Apache config for FIBRE --- diff --git a/apache/unfold.conf b/apache/unfold.conf index 357db7ee..fed763e5 100644 --- a/apache/unfold.conf +++ b/apache/unfold.conf @@ -1,19 +1,19 @@ # see also unfold-ssl.conf - WSGIDaemonProcess unfold processes=2 threads=25 - WSGIProcessGroup unfold - CustomLog ${APACHE_LOG_DIR}/unfold-access.log common - ErrorLog ${APACHE_LOG_DIR}/unfold-error.log - WSGIScriptAlias / /usr/share/unfold/apache/unfold.wsgi - - + WSGIDaemonProcess myslice processes=2 threads=25 + WSGIProcessGroup myslice + CustomLog ${APACHE_LOG_DIR}/myslice-access.log common + ErrorLog ${APACHE_LOG_DIR}/myslice-error.log + WSGIScriptAlias / /var/www/myslice/apache/myslice.wsgi + + Order deny,allow Allow from all - Alias /static/ /usr/share/unfold/static/ - + Alias /static/ /var/www/myslice/myslice/static/ + Order deny,allow Allow from all diff --git a/apache/unfold.wsgi b/apache/unfold.wsgi index 2fa84161..caf5f60c 100644 --- a/apache/unfold.wsgi +++ b/apache/unfold.wsgi @@ -1,8 +1,13 @@ import os import sys +#site.addsitedir('/var/www/myslice') + +path = '/var/www/myslice' +if path not in sys.path: + sys.path = [path] + sys.path +print sys.path os.environ['DJANGO_SETTINGS_MODULE'] = 'myslice.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() -