summaryrefslogtreecommitdiff
path: root/docs/conf
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf')
-rw-r--r--docs/conf/apache-modpython-virtualhost.conf13
-rw-r--r--docs/conf/apache-modpython.conf13
-rw-r--r--docs/conf/apache-wsgi.conf11
-rw-r--r--docs/conf/django.wsgi5
4 files changed, 42 insertions, 0 deletions
diff --git a/docs/conf/apache-modpython-virtualhost.conf b/docs/conf/apache-modpython-virtualhost.conf
new file mode 100644
index 0000000..06bbff8
--- /dev/null
+++ b/docs/conf/apache-modpython-virtualhost.conf
@@ -0,0 +1,13 @@
+<VirtualHost *:80>
+ ServerName papillon.example.com
+ # directory path to the installation of Papillon
+ PythonPath "['/var/local/django/papillon/'] + sys.path"
+ SetHandler python-program
+ PythonHandler django.core.handlers.modpython
+ SetEnv DJANGO_SETTINGS_MODULE papillon.settings
+ # set it to on or off if in test or production environment
+ PythonDebug On
+ # put differents interpreter names if you deploy several Papillon
+ PythonInterpreter papillon
+</VirtualHost>
+
diff --git a/docs/conf/apache-modpython.conf b/docs/conf/apache-modpython.conf
new file mode 100644
index 0000000..5e0d15d
--- /dev/null
+++ b/docs/conf/apache-modpython.conf
@@ -0,0 +1,13 @@
+# part of the address after the root of your site: EXTRA_URL
+<Location "/papillon/">
+ # directory path to the installation of Papillon
+ PythonPath "['/var/local/django/papillon/'] + sys.path"
+ SetHandler python-program
+ PythonHandler django.core.handlers.modpython
+ SetEnv DJANGO_SETTINGS_MODULE papillon.settings
+ # set it to on or off if in test or production environment
+ PythonDebug On
+ # put differents interpreter names if you deploy several Papillon
+ PythonInterpreter papillon
+</Location>
+
diff --git a/docs/conf/apache-wsgi.conf b/docs/conf/apache-wsgi.conf
new file mode 100644
index 0000000..a5277e6
--- /dev/null
+++ b/docs/conf/apache-wsgi.conf
@@ -0,0 +1,11 @@
+<VirtualHost *:80>
+ ServerName papillon.example.com
+ WSGIDaemonProcess ishtar processes=2 maximum-requests=500 threads=1
+ WSGIProcessGroup ishtar
+ WSGIScriptAlias / /var/local/django/papillon/apache/django.wsgi
+
+ ErrorLog ${APACHE_LOG_DIR}/papillon/error.log
+ LogLevel warn
+ CustomLog ${APACHE_LOG_DIR}/papillon/access.log combined
+
+</VirtualHost>
diff --git a/docs/conf/django.wsgi b/docs/conf/django.wsgi
new file mode 100644
index 0000000..7f86580
--- /dev/null
+++ b/docs/conf/django.wsgi
@@ -0,0 +1,5 @@
+import os, sys
+sys.path.append('/var/local/django/papillon/')
+os.environ['DJANGO_SETTINGS_MODULE'] = 'papillon.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()