IIS: Set the 8.5 error page under IIS 404

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.