From f6b389233e2d8ac3b4d29322d86fceb2e2de7a37 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 20 Jan 2011 11:06:19 +0200 Subject: initial commit --- apache/staging.conf | 31 +++++++++++++++++++++++++++++++ apache/staging.wsgi | 12 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 apache/staging.conf create mode 100644 apache/staging.wsgi (limited to 'apache') diff --git a/apache/staging.conf b/apache/staging.conf new file mode 100644 index 0000000..919a3d6 --- /dev/null +++ b/apache/staging.conf @@ -0,0 +1,31 @@ + + WSGIScriptReloading On + WSGIReloadMechanism Process + WSGIDaemonProcess caktus_website-staging + WSGIProcessGroup caktus_website-staging + WSGIApplicationGroup caktus_website-staging + WSGIPassAuthorization On + + WSGIScriptAlias / /var/www/generic_django/apache/staging.wsgi/ + + + Order Allow,Deny + Allow from all + + + + SetHandler None + + + Alias /media /var/www/staging/generic_django/media + + + SetHandler None + + + Alias /adminmedia /var/www/staging/generic_django/media/admin + + ErrorLog /var/www/log/error.log + LogLevel info + CustomLog /var/www/log/access.log combined + \ No newline at end of file diff --git a/apache/staging.wsgi b/apache/staging.wsgi new file mode 100644 index 0000000..33e898a --- /dev/null +++ b/apache/staging.wsgi @@ -0,0 +1,12 @@ +import os +import sys +import site + +PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) +site_packages = os.path.join(PROJECT_ROOT, 'env/lib/python2.6/site-packages') +site.addsitedir(os.path.abspath(site_packages)) +sys.path.insert(0, PROJECT_ROOT) +os.environ['DJANGO_SETTINGS_MODULE'] = 'generic_django.settings' + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() \ No newline at end of file -- cgit v1.3.1