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
1. Time types are divided into: 1. Network time (...
Preface During the stress test, if the most direc...
The following error is reported when MySQL joins ...
This article shares the data display code for Jav...
This article shares the specific code of swiper+e...
Preface To solve the single point of failure, we ...
1 Download MySQL Download address: http://downloa...
This article example shares the specific code of ...
Introduction Use simple jQuery+CSS to create a cus...
Preface This article mainly introduces the analys...
Introduction to Nginx Nginx is a high-performance...
Table of contents Problem Analysis Why encapsulat...
1. Introduction The location instruction is the c...
Background: A long time ago (2017.6.5, the articl...
<br />When inserting music into a web page, ...