Skip to content

Instantly share code, notes, and snippets.

@ChillarAnand
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChillarAnand/3378b1d1e07a9e9d75b3 to your computer and use it in GitHub Desktop.
Save ChillarAnand/3378b1d1e07a9e9d75b3 to your computer and use it in GitHub Desktop.
sample django wsgi apache config
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
ServerAdmin webmaster@example.com
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