简体   繁体   English

IIS7.5模块配置

[英]IIS7.5 Module Configuration

Is it possible to configure IIS so that a Module is only added to the pipeline for a specific path? 是否可以配置IIS,以便仅将模块添加到特定路径的管道中? By path I mean folder and anything therein, so if I've got the following layout: 路径是指文件夹及其中的任何内容,因此,如果我具有以下布局:

ROOT
ROOT/a.aspx
ROOT/b.aspx
ROOT/SUB1/
ROOT/SUB1/c.aspx
ROOT/SUB1/d.aspx

I want to enable the Module for any request to ROOT/SUB1/ (ie ROOT/SUB1/c.aspx, ROOT/SUB1/d.aspx) and not ROOT/ , ROOT/a.aspx etc. 我想启用对ROOT / SUB1 /(即ROOT / SUB1 / c.aspx,ROOT / SUB1 / d.aspx)的任何请求的模块,而不是ROOT /,ROOT / a.aspx等的请求。

I've tried the element, and I've tried putting a seperate web.config file in a sub folder. 我已经尝试过该元素,并且已经尝试将单独的web.config文件放在子文件夹中。 These approaches do work for Handlers, but not for a Module; 这些方法确实适用于处理程序,但不适用于模块。 the Module gets executed for every request. 该模块将为每个请求执行。

I'm using ASP.NET, IIS 7.5, .net 4.0, Integrated. 我正在使用ASP.NET,IIS 7.5,.net 4.0和Integrated。

经过大量研究后,我得出的结论是不行,相反,我检查了处理程序本身中的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM