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 ???