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
When installing Tomcat in Docker, Tomcat may over...
When uploading on some websites, after clicking t...
Table of contents Slots What are slots? Slot Cont...
Table of contents Multi-application deployment 1-...
If prompted to enter a key, select [I don’t have ...
Negative distance refers to empathy. Preface (rai...
I had been using MySQL 5.7 before, but because My...
html, address,blockquote,body, dd, div,dl, dt, fie...
Recently, due to work needs, I need to format num...
Preface Today, a developer gave me feedback that ...
Element form and code display For details, please...
This article mainly introduces the detailed expla...
The role of the a tag pseudo-class: ":link&qu...
When we make a form, we often set a submit button ...