收录日期:2020/06/02 03:43:27 时间:2009-08-07 15:32:07 标签:perl,filter,isapi,isapi-rewrite

I need to write an ISAPI filter for IIS 6.0 to rewrite ugly URLs into SEO-friendly URLs. Because of the need for string parsing and regular expressions, I'd prefer to use Perl to do this. There is a module for IIS called (ingeniously) Perl for IIS, but I'd rather not use that because it's an ISAPI extension itself (running in a DLL), so the Perl scripts run in the same process space as the calling process--meaning if the script crashes, so does everything in the app pool from which the script was executed.

So in short, can I write an ISAPI filter using Perl?

I think I just answered my own question:

http://docs.activestate.com/activeperl/5.10/Components/Windows/PerlISAPI.html

It looks like running it as an ISAPI extension is really my only choice.