Skip to content

Instantly share code, notes, and snippets.

@tlareg
Created July 24, 2015 09:19
Show Gist options
  • Save tlareg/28f74afdb01063f33936 to your computer and use it in GitHub Desktop.
Save tlareg/28f74afdb01063f33936 to your computer and use it in GitHub Desktop.
apache proxy
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *:source_port>
ProxyRequests off
ProxyPreserveHost on
ProxyPass /blah/rest http://target_host:target_port/blah/rest # sourceAddress targetAddress
ProxyPassReverseCookiePath /blah /blah/rest
ServerName localhost
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment