fix apache wsgi config
authorMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 24 Sep 2013 13:59:39 +0000 (15:59 +0200)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 24 Sep 2013 13:59:39 +0000 (15:59 +0200)
apache/myslice.conf

index 581b559..712b8ad 100644 (file)
@@ -1,25 +1,14 @@
-## better use
-# https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/
-# instead
-#
-# XXX this is very rough, was just pasted from the (wrong) web page
-# and never tested, so feel free to rewrite completely if that sounds right
-#
-#Alias /robots.txt /usr/share/myslice/static/robots.txt
-Alias /favicon.ico /usr/share/unfold/static/favicon.ico
-
-#AliasMatch ^/([^/]*\.css) /usr/share/myslice/static/styles/$1
-
-Alias /static/ /usr/share/unfold/static/
-
-<Directory /usr/share/unfold/static/>
-Order deny,allow
-Allow from all
-</Directory>
-
-WSGIScriptAlias / /usr/share/unfold/apache/myslice.wsgi
-
-<Directory /usr/share/unfold/apache>
-Order allow,deny
-Allow from all
-</Directory>
+<VirtualHost *:80>
+        WSGIScriptAlias / /usr/share/unfold/apache/myslice.wsgi
+        <Directory /usr/share/unfold/myslice>
+        <Files wsgi.py>
+        Order deny,allow
+        Allow from all
+        </Files>
+        </Directory>
+        Alias /static/ /usr/share/unfold/static/
+        <Directory /usr/share/unfold/static>
+        Order deny,allow
+        Allow from all
+        </Directory>
+</VirtualHost>