Last active
August 29, 2015 14:08
-
-
Save ChillarAnand/3378b1d1e07a9e9d75b3 to your computer and use it in GitHub Desktop.
sample django wsgi apache config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName www.example.com | |
ServerAlias example.com | |
ServerAdmin [email protected] | |
WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python2.X/site-packages | |
WSGIScriptAlias / /usr/local/www/wsgi-scripts/myapp.wsgi | |
DocumentRoot /usr/local/www/documents | |
Alias /robots.txt /usr/local/www/documents/robots.txt | |
Alias /favicon.ico /usr/local/www/documents/favicon.ico | |
Alias /media/ /usr/local/www/documents/media/ | |
<Directory /usr/local/www/yoursite.com> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment