Helicon 出的 ISAPI_Rewrite,它有 lite 免費版

http://www.isapirewrite.com/

ISAPI_Rewrite Lite

This is simplified edition of ISAPI_Rewrite. It does not support per-virtual-site configurations, proxiing, metabase monitoring and automatic cache cleanup but all other features are supported. ISAPI_Rewrite Lite is completely FREE! It may be an ideal solution for the server hosting the only site, development or testing purposes.

它有一些限制 http://www.helicontech.com/isapi_rewrite/doc/litever.htm

Lite version limitations

Lite version of ISAPI_Rewrite shares the same rewrite engine and features but with the following limitations:

* No support for distributed .htaccess configurations, directory and web site level configurations. Only one global httpd.conf configuration file will be loaded from Lite version installation folder.
* No support for <VirtualHost>, <Directory>, <DirectoryMatch>, <Files>, <FilesMatch>, <Location> and <LocationMatch> tags.
* There is no proxy module in Lite version, thus all proxy related functions like RewriteProxy directive and [P] flag will be ignored.
* No manual installation package for Lite version to install in a shared hosting environment.

ISAPI_Rewrite Lite is completely free and it is a good solution for development or testing purposes and for small servers that host only a few web sites and don’t require distributed configurations or proxy functions.

還有一個免費的,就是 Ionic’s ISAPI Rewrite Filter – IIRF

http://cheeso.members.winisp.net/IIRF.aspx

Summary of features of IIRF

* Easy to afford: there is no fee or cost to use IIRF.
* Simple to install: copy over 2 files, and 2 minutes to configure the filter.
* Simple to configure: put your rewrite rules in a text file, using a simple syntax, similar to Apache mod_rewrite.
* Simple to get started: documentation and example RewriteRules are included.
* Easy to live with: automatic ini file reloading, without IIS restart. [U] unmangle option enables logging of the original Search-engine friendly URLs in IIS log files.
* Flexible: Rewrite rules are specified using regular expressions (provided by the (free!) PCRE library).
* Capable: Conditional rewrites (via RewriteCond), Redirects (301, 302, etc), Rewriting HTTP Headers, The -f -d flags for rewriting based on the state of the filesystem.
* Scalable: install a single instance of the filter on a server, and then each website or web application gets its own configuration file.
* Easy to adopt: open source, permissive license
* Works with what you have: works with IIS5, IIS6, and IIS7, with web engines like PHP, CGI, JSP, ASP.NET, Coldfusion (CFM), and many others. Works with Joomla, Ruby-on-Rails, Tomcat many others. Works with SharePoint and Community Server too.
* Easy to understand, audit, or modify: It is implemented in about 3000 lines of commented C code.
* Easy to build: compiles with Microsoft Visual Studio 2005 or 2008 or with the (free) Microsoft VC++ 2005/2008 Express compiler.
* Not implemented with MFC (yes, this is a feature)

IIRF 的最大好處是在於它可以針對每一個 virtual host 作個別設定檔,不像 Helicon (Lite)只能一個。

 

IIRF 的作法 → 下載 bin.zip → 複製 IsapiRewrite4.dll → 授權 IUSR_xxx 至 dll 檔 → 新增 ISPI 篩選器 → restart IIS

可以參考 IIRF 的 Readme 或者 http://itgroup.blueshop.com.tw/markart/ITNote?n=convew&i=3766

補充 2009/05/24 added

特性:

1。可以使用像 apache 的 mod_rewrite 功能

2。安裝使用容易

3。每個虛擬站台有自已的設定檔

4。隨時可以修改 設定檔,不用重啟

它的官網在這裡 http://cheeso.members.winisp.net/IIRF.aspx

到這裡 http://iirf.codeplex.com/Release … spx?ReleaseId=13946

下載 IonicIsapiRewriter-1.2.15-bin.zip

壓縮檔內容有
bin→測試工具
ExampleIni→基本設定範本
lib→dll檔
tests→測試用範例
及說明文件

1. 下載壓縮檔後,將 lib 裡的 IsapiRewrite4.dll 及 IsapiRewrite4.pdb 放到 E:dllIIRF虛擬站台名稱

2. 建立設定檔 IsapiRewrite4.ini 也放在 E:dllIIRF虛擬站台名稱

RewriteRule ^/([0-9]+).html$  /?$1 [I,L]
RewriteRule ^/index-([0-9]+).html$  /index.asp?$1 [I,L]

3. 給E:dllIIRF虛擬站台名稱 目錄可讀權限,只要給 IIS WP User就好

4. 新增 ISAPI 篩選器

5。停用重啟站台,不用重啟整個 IIS 喔

6。瀏覽 http://ssorc.net/index.asphttp://ssorc.net/123.htmlhttp://ssorc.net/index-123.html 看到的內容皆是同 http://ssorc.net/index.asp

Related posts 相關文章
SessionManager 是一個躲藏在正常管道的 IIS 後門
More...
IIS APPCMD 回收應用程式集區 POOL
More...
用 GoAccess 即時分析 IIS Access Log
More...
Redirect 重導網頁 (續) Part 3
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。