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/