Skip to content

Instantly share code, notes, and snippets.

@Phoul

Phoul/pups.conf Secret

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/fec7d65492db6bc7a35b to your computer and use it in GitHub Desktop.
Save Phoul/fec7d65492db6bc7a35b to your computer and use it in GitHub Desktop.
pups.conf
Listen 81
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
Include mods-enabled/*.load
Include mods-enabled/*.conf
Include conf.d/
PidFile /var/run/pups.pid
ErrorLog ${APACHE_LOG_DIR}/error.log
Alias /static/ /home/sherief/pups/static/
<Directory /home/sherief/pups/static>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /home/sherief/pups/pups/wsgi.py
WSGIPythonPath /home/sherief/pups/
<Directory /home/sherief/pups/pups>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
<VirtualHost *:81>
ServerName pups.insecure-complexity.com
DocumentRoot /var/www
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