Configuring IIS 6.0 to execute cgi(.exe)

2019-03-20 19:44发布

问题:

I already create a virtual directory (cgi-bin) with permission : Scripts and Executable... When I test : http://localhost/cgi-bin/mapserv.exe, I got 404 error, The page cannot be found

Am I supposed to Add a EXTENSION mapping to .exe files ? Which executable ?

Thanks!

回答1:

I solved that:

Go to Web Service Extensions in the IIS service manager Select Add a new web service extension. On the required files tab, add C:\YourMapserverInstalldir\mapserv.exe Set it to allow

Thanks anyway...



回答2:

Yes, you will have to create an application mapping between the file name extension of your script and the script interpreter. Check out this link.

Installing CGI Applications in IIS 6.0



标签: iis iis-6 cgi