Skip to content

Instantly share code, notes, and snippets.

@keithshep
Last active September 5, 2015 17:04
Show Gist options
  • Save keithshep/522948 to your computer and use it in GitHub Desktop.
Save keithshep/522948 to your computer and use it in GitHub Desktop.
DB/apache httpd cheats
How to configure httpd to forward requests (tested on SuSE):
============================================================
* create /etc/apache2/proxies.conf
* change APACHE_CONF_INCLUDE_FILES="" to
APACHE_CONF_INCLUDE_FILES="/etc/apache2/proxies.conf" in
/etc/sysconfig/apache2
* add "proxy proxy_http" to the APACHE_MODULES list in
/etc/sysconfig/apache2
And the proxies.conf file might look like:
------------------------------------------
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /local-server-path http://example.com/remote-server-path
ProxyPassReverse /local-server-path http://example.com/remote-server-path
For python WSGI config:
-----------------------
[kss@bhwh02 conf.d]$ cat wormhole.conf
<VirtualHost *>
ServerName wormhole.jax.org
WSGIDaemonProcess wormhole user=apache group=apache processes=10 threads=1 inactivity-timeout=600
WSGIScriptAlias / /var/wormholedata/wormhole-git/src/app.wsgi
<Directory /var/wormholedata/wormhole-git/src>
#WSGIProcessGroup wormhole
#WSGIApplicationGroup %{GLOBAL}
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment