Skip to content

Commit

Permalink
Added example config for Apache reverse proxy
Browse files Browse the repository at this point in the history
    - It is possible to run Apache as a reverse proxy forwarding
      to a local web server (e. g. gunicorn). This config shows
      how to configure Apache to do so.
  • Loading branch information
a8 committed Aug 25, 2011
1 parent d2388b3 commit cf0e015
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions example/deploy/apache-reverseproxy.conf
@@ -0,0 +1,30 @@
<VirtualHost *>
ServerName speed.pypy.org
DocumentRoot /var/www/speed.pypy.org

ErrorLog /var/log/apache2/speed-pypy.org-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/speed-pypy.org-access.log combined
ServerSignature On

Alias /static/ /path/to/speedcenter/sitestatic/

<Directory /path/to/speedcenter/sitestatic/>
Order allow,deny
Allow from all
</Directory>

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /static !
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/

</VirtualHost>

0 comments on commit cf0e015

Please sign in to comment.