summaryrefslogtreecommitdiff
path: root/apache
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-02-15 01:34:53 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-02-15 01:34:53 +0100
commit8ccdaf23128fbe563658ca0d9d74d2ffd831b68d (patch)
treeec328953e34190e795cc6e89e4b6195116d250d2 /apache
parentd245b10bb866100a5f853220350660288f75ce2a (diff)
downloadChimère-8ccdaf23128fbe563658ca0d9d74d2ffd831b68d.tar.bz2
Chimère-8ccdaf23128fbe563658ca0d9d74d2ffd831b68d.zip
Main refactoring vor version 2 - convert doc to rest and use sphinx
Diffstat (limited to 'apache')
-rw-r--r--apache/apache-wsgi.conf13
-rw-r--r--apache/django.wsgi5
2 files changed, 18 insertions, 0 deletions
diff --git a/apache/apache-wsgi.conf b/apache/apache-wsgi.conf
new file mode 100644
index 0000000..57bd438
--- /dev/null
+++ b/apache/apache-wsgi.conf
@@ -0,0 +1,13 @@
+<VirtualHost *:80>
+ ServerName chimere.example.com
+ WSGIDaemonProcess chimere processes=2 maximum-requests=500 threads=1
+ WSGIProcessGroup chimere
+ WSGIScriptAlias / /var/local/chimere/chimere/apache/django.wsgi
+ Alias /static "/var/local/chimere/chimere/static"
+ Alias /tinymce "/usr/share/tinymce/www"
+
+ ErrorLog ${APACHE_LOG_DIR}/chimere/error.log
+ LogLevel warn
+ CustomLog ${APACHE_LOG_DIR}/chimere/access.log combined
+
+</VirtualHost>
diff --git a/apache/django.wsgi b/apache/django.wsgi
new file mode 100644
index 0000000..158f87d
--- /dev/null
+++ b/apache/django.wsgi
@@ -0,0 +1,5 @@
+import os, sys
+sys.path.append('/var/local/django/chimere/')
+os.environ['DJANGO_SETTINGS_MODULE'] = 'chimere.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()