IIS Version: IIS 8.5 Problem Description
Build a test website with two pages (index. php and 404.php). The default homepage is index. php.
When accessing index. php and 404. php, the IIS server can respond normally, indicating that there is no problem in configuring the PHP environment in IIS 8.5.
Access index. php
Access 404.php
In addition, my error page configuration results are as follows:
Normally, when accessing a non-existent page (such as 127.0.0.1/aaa. php), the iis server finds that the file aaa. php does not exist. Therefore, it should request 404.php
That is, 127.0.0.1/aaa. php ---> 127.0.0.1/404.php
However, when I access 127.0.0.1/aaa. php, the following error is reported:
Solution
Double-click "error page" settings --> select the option with Status Code 404 --> select "Edit function Settings" in the action bar on the right --> select "custom error page"
As shown in:
Original address: was a civil engineer reprint please indicate the source: http://www.cnblogs.com/hongfei/p/3765771.html