Skip to content

Instantly share code, notes, and snippets.

@azhtom
Created December 16, 2014 20:57
Show Gist options
  • Save azhtom/db73a1e12e9ed6c5ba58 to your computer and use it in GitHub Desktop.
Save azhtom/db73a1e12e9ed6c5ba58 to your computer and use it in GitHub Desktop.
Apache Reverse Proxy (Django Project)
<VirtualHost *:80>
ServerName www.mydomain.com
DocumentRoot /var/www
ProxyRequests Off
ProxyPass /media !
ProxyPass /static !
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment