Why does the 404 Service Not work for Apache?

Source: Internet
Author: User
As a prerequisite, I have placed the page_404,html page in the root directory, and the input 127.0.0.1/page_404.html can be opened
Now the problem is that I follow many of the online tutorial settings that don't work at all
Many online say this:
Modifying the httpd.conf configuration file
#ErrorDocument 404/404.html Remove # This page is placed by default under the root directory
Can modify the name of the 404.html to xxxx.html (xxxx is legal for any name)
Tutorial Click here to view
Is the author in gibberish, see his introduction is very simple, is not left a small hand ah, I am!
Here is my httpd.conf configuration
Because the file is too large, so it can only be transmitted to the network, analysis of this situation does not look at the file is not a drop
Click to download

The following is my change, in fact, is very simple, according to the author's meaning is to change the line, but why not, he is cheating everyone to play



Reply to discussion (solution)

Is the directory incorrect, or should your directory be enclosed in double quotation marks??
ErrorDocument 404 "/page_404.html"

It is best to write in the. htaccess when testing (with change, without restarting Apache)
ErrorDocument 404/404.php

Of course you need to make sure the target file exists

Use?? Lu???

  • Related Article

    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.