Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl script as handler .hml files on IIS6.0 (Is it possible?)

Perl, IIS, AddHandler

         

ursaloff

10:38 am on Sep 15, 2005 (gmt 0)

10+ Year Member



Hello. I have a Perl script on IIS which must be executed when somebody requests for .html page.

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.

ursaloff

11:33 am on Sep 15, 2005 (gmt 0)

10+ Year Member



I've found problem How to configure IIS:

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.

coopster

2:34 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Glad you got it sorted, ursaloff. Welcome to WebmasterWorld.

ursaloff

4:00 pm on Sep 15, 2005 (gmt 0)

10+ Year Member



Thank you very much :)
I was tried to fix this problem about 2 month.
And I've found it after my post to Webmaster World. So, it must be very lucky forum for me :)

coopster

4:36 pm on Sep 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hehe, anybody that has spent 2 months on a problem knows better than to call it *luck*

You eliminate possibilities, one-by-one, until resolution presents itself. Ah, all right, today we'll call that luck ;)

KevinADC

4:12 am on Sep 16, 2005 (gmt 0)

10+ Year Member



I'll meet you in Las Vegas ursaloff and we will put your luck to better use!