Monday, October 18, 2010

Install Squid cachemgr.cgi to IIS 7 (IIS comes with windows 7 or server 2008)

Copy the cachemgr.cgi to the IIS working folder.

1. turn on the CGI features for IIS 7 (Turn windows features on or Off )  , run “Optionalfeatures” in the command prompt.

image

after that, you should be able to see CGI in the IIS features set

image

2. add the handler mapping , Match extension .cgi file to cgi module. 
image

change the cgi permission to execute

image

3. setup permission to allow CGI execution.

Open the C:\Windows\System32\inetsrv\config\applicationHost.config, search isapiCgiRestriction Node.

<isapiCgiRestriction notListedIsapisAllowed="false” notListedCgisAllowed="True">

restart IIS. then you go.
image


FAQ,

If you see error

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

you missed step 2

HTTP Error 404.2 - Not Found

The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.
you missed step 3

No comments:

 
Locations of visitors to this page