Created
July 24, 2015 09:19
-
-
Save tlareg/28f74afdb01063f33936 to your computer and use it in GitHub Desktop.
apache proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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