diff options
Diffstat (limited to 'apache')
-rw-r--r-- | apache/apache-wsgi.conf | 13 | ||||
-rw-r--r-- | apache/django.wsgi | 5 |
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() |