Skip to content

Instantly share code, notes, and snippets.

@Phoul
Last active August 29, 2015 14:00
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 Phoul/624575fc89a33043b312 to your computer and use it in GitHub Desktop.
Save Phoul/624575fc89a33043b312 to your computer and use it in GitHub Desktop.
pups-staging.conf
Listen 82
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include conf.d/
PidFile /var/run/pups-staging.pid
ErrorLog ${APACHE_LOG_DIR}/error.log
Alias /static/ /home/sherief/pups-staging/static/
<Directory /home/sherief/pups-staging/static>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /home/sherief/pups-staging/pups/wsgi.py
WSGIPythonPath /home/sherief/pups-staging/
<Directory /home/sherief/pups-staging/pups>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
<VirtualHost *:82>
ServerName pups2.insecure-complexity.com
DocumentRoot /var/www2
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
# BOSH endpoint proxy START
<IfModule mod_proxy.c>
<IfModule mod_proxy_http.c>
ProxyRequests Off
ProxyPass /http-bind http://188.226.179.216:5280/http-bind/
ProxyPassReverse /http-bind http://188.226.179.216:5280/http-bind/
</IfModule>
</IfModule>
# BOSH endpoint proxy END
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment