How does the PHP Web site make it unnecessary to display important information about the server when the file behind the URL does not exist?
Source: Internet
Author: User
How the PHP site does not allow the file behind the URL to exist, not to show important information about the server
For example, HTTP +/url/abc.asp If this file does not exist,
Displays the error interface as shown (picture one),
But in the error message, it will reveal information about the server, how not to let him appear this interface, or, when the error, direct prompt (Picture II)
------Optimal Solution--------------------
Specify the 404 error handling page
IIS is modified in IIS Manager
Apache errordocument 404/404.php in config file
------Other Solutions--------------------
Unfortunately, the editor has reversed my picture. The top one is (picture two), the next one is (picture one).
------Other Solutions--------------------
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.