Sets up a protection umbrella for the website by performing reverse proxy operations under IIS

Source: Internet
Author: User

We know that ISAPI_Rewrite is a powerful URL Processing Engine Based on regular expressions.

It is very similar to Apaches mod_Rewrite, but it is designed for IIS.

ISAPI_Rewrite has two versions:

ISAPI_Rewrite Full and ISAPI_Rewrite Lite.

ISAPI_Rewrite Lite is a free version, but does not support reverse proxy.

ISAPI_Rewrite Full can only be downloaded to the 30-day trial version.

This article describes how to implement reverse proxy Based on ISAPI_Rewrite Full.

Configuration is actually very simple. The main purpose of writing is to provide a reference for friends who use ISAPI_Rewrite for the first time.

The configuration steps are as follows:

1. Download ISAPI_Rewrite Full:
Http://www.helicontech.com/download/#isapi_rewrite

2. Install ISAPI_Rewrite Full

3. modify the configuration file httpd. ini. The default location is C: Program FilesHeliconISAPI_Rewrite.

Assume that we have two Web servers, one of which is

Http://www.agenow.cn/

The other is

Www2.agenow.cn

Www is a reverse proxy server. The client browser accesses the www server. The www server requests content from the www2 server and returns it to the client.

The specific configuration in httpd. ini is as follows:

Add the following content to httpd. ini:
RewriteCond Host: www2.agenow.cn
RewriteProxy (. *) http://www.agenow.cn $1 [I, F, U]

Refer to the configuration document:
Http://www.isapirewrite.com/docs/
 

 

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.