iis7下运行php网站(thinkphp5)
下载url rewrite模块安装
https://www.jb51.net/softs/614384.html#downintro2
参考地址
https://blog.csdn.net/suxuelian/article/details/80103514
iis安装thinkphp
https://blog.csdn.net/u012593638/article/details/104014273
web.CONFIG文件
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="OrgPage" 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> <defaultDocument> <files> <add value="index.php" /> </files> </defaultDocument> <httpErrors errorMode="Detailed" /> </system.webServer> </configuration> |
如何在iis下显示详细500错误信息?
在iis下点击错误页,然后点击500页面,编辑功能设置