This function allows you to customize the page for displaying the returned status code. This function currently supports default and custom pages.
The following example uses the error code 404:
Default value: When the HTTP 404 code is returned, the default “404 Not Found” page is displayed.
Public welfare 404: When the HTTP 404 code is returned, the server redirects the resulting page to the public welfare 404 page that is updated in real time. For more information, see Public welfare 404 page.
Custom 404 page: When the HTTP 404 code is returned, the server redirects the resulting page to the custom 404 page that you have customized. You must specify a full URL for the custom 404 page.
- The public welfare 404 page is a public welfare resource of Alibaba Cloud, which does not incur any traffic fees.
- The custom pages are user resources, which are billed based on the billing method that you have selected for VOD.
Go to the Domain Names page in the VOD console and select a domain name. On the Domain Configuration page, set a custom error page.
Click Modify to view and manage custom error pages.
Click Add to add a custom error page.
If you select the Custom 404 Page, the page resources are saved under the origin-site domain like other static files. Also, you can access the page resources by entering the full CDN domain URL (including http://).
For example, if the CDN domain is exp.aliyun.com404 and the page file is error404.html, you can save the error404.html page file to the origin site, select the Custom 404 Page, and enter http://exp.aliyun.com/error404.html.