Is there Apache's mod_proxy equivalent in IIS?
I have following configuration in my Apache's httpd.conf (mod_proxy enabled):
Header add Set-Cookie "ROUTEID=hej.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED
<Proxy balancer://openfire>
BalancerMember http://server2:7070/http-bind/ route=1
ProxySet stickysession=ROUTEID
</Proxy>
ProxyPass /project1/http-bind balancer://openfire nofailover=Off
ProxyPassReverse /project1/http-bind balancer://openfire
I need to do similar config for IIS. I tried ARR (Application Request Routing) but could not get it working.
Can someone help me to achieve this?
Thanks.
The "ProxyPass" and "ProxyPassReverse" parameters are used to tell Apache how to proxy requests. They require the "mod_proxy.so" and "mod_proxy_http.so" Apache modules, which are loaded by default in RHEL5 and RHEL6, but check the following lines are uncommented in the "/etc/httpd/conf/httpd. conf" file to make sure.
The ProxyPassReverse is used to change the headers sent to Apache from a proxied app server, before Apache sends it to the browser.
When you send a web request, your request goes to the proxy server first. The proxy server then makes your web request on your behalf, collects the response from the web server, and forwards you the web page data so you can see the page in your browser.
The ProxyPreserveHost directive is used to instruct Apache mod_proxy, when acting as a reverse proxy, to preserve and retain the original Host: header from the client browser when constructing the proxied request to send to the target server.
I believe you are looking for Application Request Routing. For examples, there are many on StackOverflow already, such as this one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With