Setup of IIS Proxy
1. Unzip iisproxy.zip
2. Add IIS Proxy to ISAPI filters
Run IIS MMC, click properties on the site you want to use as IISProxy, CLick ISAPI filters tab:
click Add, fill
Filter name: IISPRoxy
Executable: Path to IISProxy DLL
3. Copy iisproxy.ini to the root of web site you want to use and choose a proxy sample you want to use. Set the proxy sample path in "NotFoundScript" of "main" section in the INI.
[main] LogFileDirectory=J:\IIS.Log\_IISProxy\ ReplaceHostLevel=0 CheckIfFound=1 NotFoundScript=/redesign.asp? DefaultStaticDocument=default.asp
LogFileDirectory - directory to place log files.
ReplaceHostLevel
0 - means that there is no replace/rewrite of URL.
1 - means that IIS Proxy puts Host header to the URI of request. IIS proxy will rewrite next request:
0 - means that there is no replace/rewrite of URL.
1 - means that IIS Proxy puts Host header to the URI of request. IIS proxy will rewrite next request:
GET /someuri.ext?params HTTP/1.1 Host: www.issproxy.netto:
GET /www.issproxy.net/someuri.ext?params HTTP/1.1 Host: www.issproxy.net
CheckIfFound
If this value is set to 1, IISProxy will not rewrite URL if the
file on disk exists.
NotFoundScript
Proxy script to handle nonexist requests.
4. Browse the IIS site and test the proxy.