iis7.5 do a reverse proxy configuration method Instance drawing tutorial

Source: Internet
Author: User

Many of the opening articles on the network say a lot of principles and the like here we directly start configuration.
but also want to simply say win under configure reverse proxy only IIS7 above version can realize this function, here we use WINDOWS2008 R2 to do as test 2008r2 installed IIS 7.5, we need to implement the reverse proxy through the application Request routing module.
Next, let's application the installation method of the Request routing module first go to http://www.iis.net/extensions/ applicationrequestrouting Download Application Request Routing, then install (description: Some open Web sites do not know where to download here we explain below)

We click to enter the download interface as

Here we also provide the download of the native address
Requestrouter_x64.msi       
Requestrouter_x86.msi
then we directly click on the downloaded file

we install it directly by clicking "Install"

We click "Finish" to complete our installation, and then we open our IIS

below we proxy item
We double-click "Application Request Routing Cahce" appears as interface

We click "Server Proxy Settings ..." to appear as shown:

we can see that the default is not open, below to see our settings such as:

Here we can open it directly. Others do not have to do any of the settings and then we click on the right "action" inside the app to turn on our IIS reverse proxy function such as:


below we do a reverse proxy as an instance. We now watch the domain name http://www.luyouqiwo.com for this domain name. We use the reverse proxy to implement input http://www.luyouqiwo.com to open http://www.idcff.com content on this site.
let's look at our operation below.
first we need to re-parse our domain name http://www.luyouqiwo.com to our proxy server. Because now we test the proxy server is the IP of the intranet, so we change the host file above our client to make our domain name http://www.luyouqiwo.com point to our proxy server192.168.1.179 changes have been made to tests such as:


so that our domain name will take effect, then see the Operation
The first step: We need to build a site on IIS here we use the default site of IIS to test:


we double-click on the "URL" override to open as

We click "Add Rule" to appear as:

When you open the default is a "blank rule" then we directly click "OK"-if not, we need to select "Blank rule"


Second, we write the rules .

in the name, we write "reverse proxy rules." Here's the name we can afford.
The pattern is written in: ^ (. *)-------------^ (. *) represents a URL string that handles all formats
then we configure "conditions" such as:

We click "click" To open the Add dialog box, the condition input "fill" {Http_host} "means the hostname of the request, the pattern format is:" ^ bound domain name $ ", here I want to let the user access http://www.luyouqiwo.com access to [url= Http://www.idcff.com]www.idcff.com[/url], that is, to www.idcff.com do reverse proxy, written like this (^www.luyouqiwo.com$), The prerequisite is that the domain name must be bound to the IP of your proxy server. Then we click OK.

Next we find the operation: These are all in one interface we pull the scroll bar to see such as:

in the rewrite we write the domain name that needs to be reverse proxy. format: http://www.idcff.com.com:80/{r:1}then we click on the right side of the app like:

so that our pseudo-static configuration is good. We come to access under the reverse Domain name www.luyouqiwo.com open as:

we can see that the contents of the domain name we are visiting are changed. The reverse proxy succeeded.

To put it bluntly, IIS implements the reverse proxy is also just a configuration file, our above file content is:
<?xml version= "1.0" encoding= "UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name= "reverse proxy rules" >
<match url= "^ (. *)"/>
<conditions>
<add input= "{http_host}" pattern= "^www.luyouqiwo.com$"/>
</conditions>
<action type= "Rewrite" Url= "http://www.idcff.com:80/{r:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

We can save the Web. config file to the root directory. Prerequisite to install application Request Routing and turn on reverse proxy function

iis7.5 do a reverse proxy configuration method Instance drawing tutorial

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.