From e9849a044e1de289b6834303a588a9c4ae67b0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Martin=20Sl=C3=A5en?= Date: Fri, 22 Apr 2011 00:23:22 +0200 Subject: [PATCH] Added readme file for the apache configuration --- apache/README | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 apache/README diff --git a/apache/README b/apache/README new file mode 100644 index 0000000..bb45541 --- /dev/null +++ b/apache/README @@ -0,0 +1,34 @@ +# To use this application with apache, create a virtual-host directive and add the following: + +# need to add both the path above the project and the project path itself +WSGIPythonPath /path/to/project:/path/to/project/dns_mdb + + + ServerAdmin sysadmin@example.com + ServerAlias mdb.example.com + DocumentRoot /var/www/example.com + CustomLog /var/www/example.com/log/access.log combined + ErrorLog /var/www/example.com/log/error.log + + Alias /robots.txt /var/www/example.com/mdb/robots.txt + Alias /favicon.ico /var/www/example.com/mdb/favicon.ico + + AliasMatch ^/([^/]*\.css) /var/www/example.com/mdb/static/styles/$1 + + Alias /static/ /var/www/example.com/mdb/static/ + + + Order deny,allow + Allow from all + + + WSGIScriptAlias / /path/to/project/dns_mdb/apache/django.wsgi + + + Order allow,deny + Allow from all + + + + +