# 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