我可以用 Perl 编写 ISAPI 过滤器吗?

发布于 2024-07-30 05:57:43 字数 273 浏览 3 评论 0原文

我需要为 IIS 6.0 编写一个 ISAPI 过滤器,将丑陋的 URL 重写为 SEO 友好的 URL。 由于需要字符串解析和正则表达式,我更喜欢使用 Perl 来完成此操作。 IIS 有一个名为(巧妙地)Perl for IIS 的模块,但我不想使用它,因为它本身就是一个 ISAPI 扩展(在 DLL 中运行),因此 Perl 脚本与调用进程在同一进程空间中运行 - - 意味着如果脚本崩溃,则执行脚本的应用程序池中的所有内容也会崩溃。

简而言之,我可以使用 Perl 编写 ISAPI 过滤器吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随梦而飞# 2024-08-06 05:57:43

我想我只是回答了我自己的问题:

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

看起来将其作为 ISAPI 扩展运行确实是我唯一的选择。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文