A http://www.codeproject.com/KB/IP/reverseproxy.aspx found on the Network
When httphandel is used to implement reverse proxy, it turns out that its configuration is a bit complicated, and some virtual hosts cannot be configured.
I want to change it to httpmodule, so that it can be used on the VM.
Then we started.
The module has been written. In vs2010, everything is normal. Which integration mode is added to iis7?
Something went wrong at once.
Configuration Error lock conflict
The solution is to set <system. webserver> In applicationhost. config under c: \ windows \ system32 \ inetsrv \ config
<Modules>
<Add name = "httpcachemodule" lockitem = "true"/>
<Add name = "staticcompressionmodule" lockitem = "false"/>
<Add name = "defaultdocumentmodule" lockitem = "false"/>
Change lockitem = "true" to false
In this way, you can pass
It is hoped that most host providers will not lock this.
In terms of principle, the request will be relayed in a simple sentence.
Source code download