Purpose: Treat Station A as the secondary directory of Station B like: http://www.baidu.com is equal to /baidu/ http://www.qq.com is equal to http://www.6ke.com.cn/qq/ 1. Install 64-bit URL IIS7 rewrite Installation Steps1. The version of IIS is 7.5.7600.16385. 2. Close related services. net stop was /y net stop wmsvc /y The second service is not turned on. 3. Manually install ARR dependencies. a) Web Farm Framework module version 1.1 b) External cache module version 1.0 c) URL Rewrite module version 2.0 4. Install ARR.version 3.0 5. Start the service that was previously shut down. net start was net start wmsvc 6. Installation successful. Problems encountered:Previously installed using WebPI. It will automatically install ARR3.0 related dependencies. Server Farm can be displayed normally, but ARR3.0 is not installed successfully. Checking the system log shows: Failed to load file or assembly: Solution: Uninstall all the automatically installed arr and its dependencies. Follow the above steps to install manually. 3. Save the following rules in Notepad and rename them to web.config. The above files can be downloaded from https://www.jb51.net/softs/629246.html Put the website root directory: <?xmlversion="1.0"encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rulename="OrgPage"stopProcessing="true"> <matchurl="^baidu(.*)$"/> <actiontype="Rewrite"url="http://www.baidu.com/{R:1}"/> </rule> <rulename="OrgPage4"stopProcessing="true"> <matchurl="^qq(.*)$"/> <actiontype="Rewrite"url="http://www.qq.com/{R:1}"/> </rule> </rules> </rewrite> <defaultDocument> <files> <clear/> <addvalue="index.html"/> <addvalue="1.html"/> <addvalue="index.php"/> </files> </defaultDocument> </system.webServer> </configuration> 4. Find aRR and click it as shown below. Code Explanation:
It's done! Steps to add reverse proxy in IIS6 and 71. Install requestRouter_amd64.msi and rewrite_x64_zh-CN.msi. 2. Open IIS and select Application Request... 3. Select Server Proxy Settings. . . 4. Check Enable proxy and click Apply on the right. 5. Select the site that needs reverse proxy, and then select URL rewrite. 6. Click Add Rule 7. Select Blank Rule 8. Fill in the form as shown below 9. Fill in the form as shown below 10.Continue to fill in the form according to the diagram 11. You are now done. IIS6 is relatively simple, the steps are as follows: 1. Download and install Rewrite3. 2. Modify the ".htaccess" file appropriately and put it in the root directory of the website. You may also be interested in:
|
<<: Analysis of the Principle of MySQL Index Length Limit
>>: JavaScript Canvas draws dynamic wireframe effect
Table of contents Preface: 1. Understand lock wai...
The following content introduces the process and ...
Table of contents Preface 1. The effect is as sho...
First, install openssh-server in docker. After th...
I was recently writing a lawyer recommendation we...
Introduction: This article mainly introduces how ...
Table of contents 1. Parent component passes valu...
The HTML code for intercepting text beyond multipl...
Table of contents 1. Introduction to Harbor 1. Ha...
Use of stored procedure in parameters IN paramete...
As a required course for front-end developers, CS...
Table of contents 1. Mini Program Subcontracting ...
Table of contents 1 Indicators in stress testing ...
1|0 Background Due to project requirements, each ...
Preface The logical judgment statements we use in...