Cloud Server Custom site 404 page does not take effect

Source: Internet
Author: User
Tags vps server

Usually on the network, see some of the way to set up custom 404 pages, in fact, it is a very common operation method, why most of the settings do not work? or not to call 404 pages?

1. Set the custom 404 first.

Upload 404 page-Open IIS (Internet Information Services)-Select your website, right-click Properties, click Custom Error (in the following: "HTTP error message" box, find 404, check Double-click, or select "Edit Properties" in the point to choose your own custom 404 page.) However, it is important to select either "File" or "default" in the message type instead of "URL", which will result in the "200" status code being returned. )

2. Find out why 404 pages are not in effect

1) 404 Custom error Page Setup error

2) The IIS_WPG group of 404 files does not have read and run permissions.

3) 404.html file size is too small (>512b)

4) The server has a security dog installed (workaround: Secure dog-resource protection-response Content Protection (HTTP request error type, minus 404))

After many tests, the above methods are possible, but the most likely is 2nd, 4th, in fact, according to the formal settings, are not error, so if it is their own set up services, have installed the corresponding defense software, it is necessary to pay more attention, as long as careful, can find the corresponding solution, I hope you have some help. (Subsidiary article: Troubleshooting VPS Server IIS settings 404 does not take effect method)

Source: TripAdvisor Blog This article link: http://www.tuniuboke.com/post/271.html

Cloud Server Custom site 404 page does not take effect

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.