Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache's ProxyPass and ProxyPassReverse equivalent in IIS

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.

like image 585
Mohan Avatar asked Oct 17 '12 06:10

Mohan


People also ask

What is ProxyPass and ProxyPassReverse?

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.

What is the use of ProxyPassReverse?

The ProxyPassReverse is used to change the headers sent to Apache from a proxied app server, before Apache sends it to the browser.

What is Proxyrequests?

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.

What is ProxyPreserveHost?

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.


1 Answers

I believe you are looking for Application Request Routing. For examples, there are many on StackOverflow already, such as this one.

like image 136
Joel Peltonen Avatar answered Oct 20 '22 13:10

Joel Peltonen