X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=apache%2Fmyslice.conf;h=b36a75ecd8ba91c327bde726dc81ceccdbe42a1b;hb=e6184193b74ac6d5c52289546dae9121bdd99008;hp=a3d1d32baa0e0497d2a4323640a8ddf94d28819d;hpb=ea15d8f8641500ff6a551eaa5bdd8bf1e0674e86;p=myslice.git
diff --git a/apache/myslice.conf b/apache/myslice.conf
index a3d1d32b..b36a75ec 100644
--- a/apache/myslice.conf
+++ b/apache/myslice.conf
@@ -1,25 +1,48 @@
-## 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/all-static/robots.txt
-Alias /favicon.ico /usr/share/myslice/all-static/favicon.ico
+
+ WSGIScriptAlias / /usr/share/unfold/myslice/wsgi.py
+
+
+ Order deny,allow
+ Allow from all
+
+
+ Alias /static/ /usr/share/unfold/static/
+
+ Order deny,allow
+ Allow from all
+
+
-#AliasMatch ^/([^/]*\.css) /usr/share/myslice/all-static/styles/$1
+# This port (not necessarily well picked) is configured
+# with client-certificate required
+# corresponding trusted roots (e.g. ple.gid and plc.gid) should be
+# configured in /etc/unfold/trusted_roots
+# check Jordan's email and pointer to trac, although we do not want
+# this to be optional on that port
-Alias /all-static/ /usr/share/myslice/all-static/
+
+ WSGIScriptAlias / /usr/share/unfold/myslice/wsgi.py
+
+
+ Order deny,allow
+ Allow from all
+
+
+ Alias /static/ /usr/share/unfold/static/
+
+ Order deny,allow
+ Allow from all
+
-
-Order deny,allow
-Allow from all
-
+ SSLEngine on
+ SSLVerifyClient require
+ SSLVerifyDepth 5
+# make this a symlink to /etc/sfa/trusted_roots if that makes sense in your env.
+ SSLCACertificatePath /etc/unfold/trusted_roots
+# see init-ssl.sh for how to create self-signed stuff in here
+ SSLCertificateFile /etc/unfold/myslice.cert
+ SSLCertificateKeyFile /etc/unfold/myslice.key
-WSGIScriptAlias / /usr/share/myslice/apache/myslice.wsgi
-
-
-Order allow,deny
-Allow from all
-
+# SSLOptions +StdEnvVars +ExportCertData
+ SSLOptions +StdEnvVars
+