app教程网 学习教程 配置伪静态(iis设置伪静态)

配置伪静态(iis设置伪静态)

IIS7中的这个问题是边肖在测试windows 2008 iis7 php环境时遇到的问题。找了很多教程都没有解决。让我们来看看。

有两种解决方案,一种是在system32中修改applicationhost.config,另一种是在web.config中添加几行代码,如下。

1.修改网站根目录下的web.config。

Find the web page configuration file in the root directory of the site, find the system.webServer node, and add RequestFiltering AllowdoubleEscaping="true".

代码效果如下:

代码如下所示

configuration

system.webServer

security

requestFiltering allowDoubleEscaping='true'/requestFiltering

/security

/system.webServer

/configuration

2. Modifying the application host. Configuration

In the application host. Configuration file, navigate to the request filtering node under configuration /system. web server/security/request filtering/in the file.

代码如下所示

configuration

system.webServer

security

requestFiltering allowDoubleEscaping='true'/requestFiltering

/security

/system.webServer

/configuration

以上两种方法第一种是当前站点,第二种是所有站点。边肖建议使用第一种方法,这样全一就安全了。

本文来自网络,不代表本站立场,转载请注明出处:https: