Configuring the Reverse Proxy implementation method with IIS

Source: Internet
Author: User

Always think of windows with Nginx to configure the reverse proxy, did not expect the official Microsoft also out of this thing, special sharing under, convenient for the needs of friends

Target server: TargetServer

Configure the reverse proxy server: Reveseproxserver

IIS should be IIS7 and later.

1, determine the final visit URL: such as www.baidu.com, www.jb51.net and so on.

Of course you can also deploy your own program in TargetServer, here to demonstrate, I deployed on the TargetServer 2, 8088 ports, the program is:

Http://targetServer:8088/Auditsys/Default.htm

Http://targetServer:8088/GCustomer/Login.htm

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235243747008.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

2, the following operations are performed on the reveseproxserver.

3. Install IIS.

4. Installation of Arr, (http://www.iis.net/downloads/microsoft/application-request-routing)

5. Create a new Web site: (my example Yiweb, port is 8080) http://reveseProxServer:8080

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235243994088.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

5. Enable Proxy

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235244172805.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px;width:650px; "/>


650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235244594697.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235244721655.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

6. Add URL Rewrite rules

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235244907209.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>


Then add a blank rule:

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235245109365.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px;width:650px; "/>

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235245206048.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px;width:650px; "/>

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235245453128.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

Save this rule, OK!

7. Trial effect

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235245607431.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>

650) this.width=650; "src=" Http://image.mamicode.com/info/201604/20181003235245784195.png "style=" border:1px Solid RGB (204,204,204); height:auto;vertical-align:bottom;padding:1px; "/>


8. Summary:

above ^ (. *), ^192.168.3.73:8080$, http://targetserver:8088/{r:1}

To replace http://targetserver:8088/with 192.168.3.73:8080,

{r:1} means ^ (. *), meaning "http://targetserver:8088/" matches any character after

Eg: Visit 192.168.3.73:8080/test/index.htm

This URL is rewritten as a http://targetserver:8088/test/index.htm


This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1765339

Configuring the Reverse Proxy implementation method with IIS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.