If apache is configured like this, why does 404 service not work?

Source: Internet
Author: User
If apache is configured in this way, why does the 404 service not work? I have already placed page_404 and html pages in the root directory, and input 127.0.0.1/page_404.html to open them.
Now the problem is that I set it according to many tutorials on the internet and it does not work at all.
Many Internet users say this:
Modify the httpd. conf configuration file
# ErrorDocument 404/404. HTML removed # This page is placed under the root directory by default.
You can modify the name of 404.html to xxxx.html (xxxx is a legal name)
Click here to view the tutorial
Is it easy for the author to look at his introduction when talking nonsense? is it a little bit left? I rely on it!
The following is my httpd. conf configuration
Because the file size is too large, it can only be uploaded to the online storage.
Click to download

The following is my change. it is actually very simple. I just changed this sentence according to the author's meaning, but why not? is he lying to everyone?



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 it in. htaccess during testing (use as needed without restarting Apache)
ErrorDocument 404/404 .php

Of course, you must ensure that the target file exists.

Use ?? Path ???

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.