Added readme file for the apache configuration

This commit is contained in:
Tor Martin Slåen committed 2011-04-22 00:23:22 +02:00
1 parent 1dacdae7c6
commit e9849a044e
1 file changed
+34
+34
View File
@@ -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
<VirtualHost *:80>
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/
<Directory /var/www/example.com/mdb/static>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /path/to/project/dns_mdb/apache/django.wsgi
<Directory /var/www/example.com/mdb/scripts>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>