It is very easy on Apache with AddHandler directive:
AddHandler text/html .html
Action text/html /cgi-bin/myhandler.cgi
But how can I do same on IIS?
Is there other way then convert myhandler.cgi to myhandler.exe executeble and set "Application extentionton" to c:\web\site\cgi-bin\myhandler.exe to .html files?
Thank you.
In IIS configuration "Site Properties" -> "Home directory" -> "Application settings" -> "Configuration" I've added
"E:\web\usr\bin\Perl.exe "E:\SandoraSite\cgi-bin\handler.cgi" %s" as extension for all ".htm" files
But IIS did not allowed me to add same extension to "Web Service extension" but problem was solved after allowing "All unknown CGI extensions".
Now all .htm pages handled by my handler.cgi script.