php7.2 fastcgi环境配置伪静态?
新人求教各位大侠们,我用php7.2 + fastcgi环境配置了一个网站,开启伪静态的时候难倒了……我把web.config文件,上传到我的服务器根目录下,显示config文件第22行报错。
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="yhxia_page" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf8" responseEncoding="utf8" fileEncoding="utf8" />
</system.web>
</configuration>
请各位大侠们帮忙指教