iirf-58377
所属分类:Windows编程
开发工具:Visual C++
文件大小:1652KB
下载次数:22
上传日期:2009-08-25 17:14:52
上 传 者:
galihoo
说明: Ionics Isapi Rewrite Filter
一个使用isapi来写的重定向器,重定向器可以用来保护网站的资源,实现个性化,国际化等等功能,
(Ionics Isapi Rewrite Filter to write one using the isapi redirector, the redirector can be used to protect the site' s resources to achieve personalization, internationalization, and so function,)
文件列表:
License.IIRF.txt (3128, 2009-08-25)
v1.2 (0, 2009-08-25)
v1.2\3rdParty (0, 2009-08-25)
v1.2\3rdParty\License.PCRE.txt (2496, 2009-08-25)
v1.2\3rdParty\Makefile (2979, 2009-08-25)
v1.2\3rdParty\pcre.h (12438, 2009-08-25)
v1.2\3rdParty\pcre.lib (182344, 2009-08-25)
v1.2\ExampleIni (0, 2009-08-25)
v1.2\ExampleIni\ChainedRewriteCond.ini (919, 2009-08-25)
v1.2\ExampleIni\DetectFilesAndDirectories.ini (2171, 2009-08-25)
v1.2\ExampleIni\DrupalRules.ini (1532, 2009-08-25)
v1.2\ExampleIni\PhpBlog.ini (1107, 2009-08-25)
v1.2\ExampleIni\RouteBasedOnHostname.ini (818, 2009-08-25)
v1.2\ReleaseNotes.txt (16218, 2009-08-25)
v1.2\Source (0, 2009-08-25)
v1.2\Source\drop.bat (269, 2009-08-25)
v1.2\Source\IIRF.h (251, 2009-08-25)
v1.2\Source\IirfConfig.h (951, 2009-08-25)
v1.2\Source\IirfConstants.h (1564, 2009-08-25)
v1.2\Source\IirfRequestContext.h (461, 2009-08-25)
v1.2\Source\IirfVersion.c (4243, 2009-08-25)
v1.2\Source\IsapiRewrite4.c (146013, 2009-08-25)
v1.2\Source\makefile (9728, 2009-08-25)
v1.2\Source\RewriteRule.h (1701, 2009-08-25)
v1.2\Source\TestDriver.c (9470, 2009-08-25)
v1.2\Source\TestParse.c (526, 2009-08-25)
v2.0 (0, 2009-08-25)
v2.0\3rdParty (0, 2009-08-25)
v2.0\3rdParty\License.PCRE.txt (2496, 2009-08-25)
v2.0\3rdParty\Makefile (3080, 2009-08-25)
v2.0\3rdParty\pcre.h (12438, 2009-08-25)
v2.0\3rdParty\pcre.lib (182344, 2009-08-25)
v2.0\AdminGuide (0, 2009-08-25)
v2.0\AdminGuide\buildhelp.bat (73, 2009-08-25)
v2.0\AdminGuide\Content (0, 2009-08-25)
v2.0\AdminGuide\Content\Configuration (0, 2009-08-25)
v2.0\AdminGuide\Content\Configuration\Configuring IIRF.aml (16025, 2009-08-25)
v2.0\AdminGuide\Content\Configuration\Global (0, 2009-08-25)
v2.0\AdminGuide\Content\Configuration\Global\Directives.aml (1276, 2009-08-25)
v2.0\AdminGuide\Content\Configuration\Global\NotifyLog.aml (3168, 2009-08-25)
... ...
Mon, 24 Aug 2009 05:04
Readme - Ionic's Isapi Rewrite Filter (IIRF) 2.0
IIRF is an open source rewriting filter for IIS 5, 6, and 7.x.
This readme tells you how to build IIRF from the source.
If you want to USE IIRF, then download a binary release from
http://iirf.codplex.com, and read the accompanying documentation (CHM
file).
License
---------------------------------
Ionic's ISAPI Rewrite Filter (IIRF) is an add-on to IIS that can
rewrite URLs. IIRF and its documentation is distributed under
the Microsoft Permissive License. See the License.IIRF.txt file for
full details.
IIRF depends upon PCRE, which is licensed independently and
separately. Consult the 3rdParty\License.PCRE.txt file for details.
Implementation
---------------------------------
This filter is implemented in C.
IIRF compiles with the Microsoft VC9 compiler, which ships with
Visual Studio 2008.
It may also build with Visual C++ 2008 Express Edition, but I haven't
tested it. Express is a free version of Visual Studio.
For more information on it, see
http://www.microsoft.com/express/vc
The compiler (cl.exe) is the same, for the Express and the commercial
Visual Studio offering. It produces the same code.
Pre-requisites for building
--------------------------------------------
Visual Studio or possibly Visual C++ 2008 Express
http://msdn.microsoft.com/vstudio/express/visualc/
You need the compiler to bbuild the source.
Microsoft Windows SDK download (WS2008 Edition)
http://www.microsoft.com/downloads/details.aspx?familyid=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
You need this for the header files and libraries.
You only need the IIS portion of the SDK.
IIRF uses Third-party software
--------------------------------------------
IIRF depends on PCRE for the regular expression support. The version of
PCRE used in IIRF is v7.8 (from 2008). The source distribution of IIRF
re-distributes the PCRE binary. Check the PCRE license file for
information on how PCRE is licensed.
Building the Filter
---------------------------------
If you'd like to compile IIRF, you can use the C++ compiler
that ships with Visual Studio 2005 or 2008, or you can also use the free
version of the Microsoft C++ compiler and tools, called
Microsoft Visual C++ {2005,2008} Express. It is available here:
http://www.microsoft.com/express/download/
If you use the VC++ Express, then you will also need to download
and install the Microsoft Windows SDK, previously known as the Windows
Platform SDK. The SDK includes
headers and include files used by the build. You should get the latest
SDK - the one for Windows Vista or Windows Server 2008. The SDK is
available from here:
http://www.microsoft.com/downloads/details.aspx?familyid=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
The Windows SDK is large and modular - there are subsets of the Windows
SDK that cover things from the filesystem, to device drivers, to
transactions, and many others. You need at least the core files and the
IIS SDK.
You may want to download the Windows SDK een if you have the full
version of Visual Studio. The downloadable Windows SDK includes updates
from the SDK components that are included with Visual Studio.
Summary:
To build the filter, you need these pre-requisites:
1. a build tool; Either:
- the Microsoft Visual C++ 2005 Express, plus
the Microsoft Windows Platform SDK (core files plus IIS SDK).
The latter includes headers and lib files used by this project.
or:
- Microsoft Visual Studio 2005 or 2008
This one includes the headers and libs you need.
and optionally,
the Microsoft Windows Platform SDK (core files plus IIS SDK).
Either of the above also includes a make utility, nmake.exe .
2.
- a PCRE statically linked library, pcre.lib plus the pcre.h
header file. These are included in the IIRF
distribution. You can also download them directly from www.pcre.org.
You have two options for building IIRF: within the Visual Studio IDE
using the IIRF.sln solution, or from the command-line, using a makefile.
In either case, you will need to modify the settings for the project -
either in the makefile or in the Project and solution settings within
Visual Studio - IIRF to specify the locations of the Windows SDK.
After you make those changes:
A. To build with nmake:
nmake config=Release
or
nmake config=Debug
B. To build from within Visual Studio,
in Visual Studio, right click on the Solution in
solution explorer, and click Rebuild.
Building PCRE
---------------------------------
IIRF includes a pre-built binary version of the PCRE library, so
it is not required that you download or build a PCRE library to
use IIRF. However, you may wish to download and build PCRE
yourself. To download it, go to: http://www.pcre.org/
The build procedure for PCRE on Windows is not well documented, but it
wasn't difficult for me to get the build to work. You can use one of the
MS C++ compilers, and you need the libraries and headers in the Windows
SDK. If you wish to build PCRE on Windows, you will need to create your
own PCRE makefile. In the source package for IIRF, I've included the
modified makefile I used, in this zip file. IIRF does not include any
source code for PCRE. You can get that separately.
As of Friday, 01 Feb 2008, IIRF uses PCRE version 7.8. This was
the current version of PCRE at that time.
Futures
---------------------------------
I welcome feedback on IIRF. Let me know if you've used it,
and how it went. Let me know of bugs you find or troubles you
have. Let me know what other features you would like to see.
Do all this on the IIRF site:
www.codeplex.com/IIRF
Bugs
---------------------------------
- Not well tested on clustered IIS.
- Unicode? what's unicode?
- Performance has not been well measured.
- There is no MRU cache employed for URL re-writing.
- No rollover of text-based Log files
- The filter silently tolerates syntax errors in the INI file.
This behavior should be settable. (eg, option strict)
Fixed Bugs / Change History
---------------------------------
(See ReleaseNotes.txt)
Updates
---------------------------------
Check for the latest updates at:
http://www.codeplex.com/IIRF
Thanks
-Dino
dpchiesa@hotmail.com
近期下载者:
相关文件:
收藏者: