summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-08-25 17:44:53 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-08-25 17:44:53 +0200
commit9df57fa0f3db7d98098dba921c743d0bacc07364 (patch)
tree58ae83a254290156b19450785b795c81825b521f /docs
parentfa3cb0280825173d6ca039944ae5d591172a56df (diff)
downloadIshtar-9df57fa0f3db7d98098dba921c743d0bacc07364.tar.bz2
Ishtar-9df57fa0f3db7d98098dba921c743d0bacc07364.zip
Add wsgi conf files
Diffstat (limited to 'docs')
-rw-r--r--docs/conf/apache-wsgi.conf11
-rw-r--r--docs/conf/django.wsgi5
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/conf/apache-wsgi.conf b/docs/conf/apache-wsgi.conf
new file mode 100644
index 000000000..d1d6672e2
--- /dev/null
+++ b/docs/conf/apache-wsgi.conf
@@ -0,0 +1,11 @@
+<VirtualHost *:80>
+ ServerName ishtar.example.com
+ WSGIDaemonProcess ishtar processes=2 maximum-requests=500 threads=1
+ WSGIProcessGroup ishtar
+ WSGIScriptAlias / /var/local/ishtar/ishtar/apache/django.wsgi
+
+ ErrorLog ${APACHE_LOG_DIR}/ishtar/error.log
+ LogLevel warn
+ CustomLog ${APACHE_LOG_DIR}/ishtar/access.log combined
+
+</VirtualHost>
diff --git a/docs/conf/django.wsgi b/docs/conf/django.wsgi
new file mode 100644
index 000000000..ca0a2e5ac
--- /dev/null
+++ b/docs/conf/django.wsgi
@@ -0,0 +1,5 @@
+import os, sys
+sys.path.append('/srv/ishtar/')
+os.environ['DJANGO_SETTINGS_MODULE'] = 'ishtar.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()