Symptoms
- Custom error pages do not show correctly and instead, the default error pages are shown
- Custom error documents is enabled in Domains > example.com > Hosting Settings
- In Domains > example.com > Apache & nginx Settings the Nginx only (proxy mode off) option is being enabled
Cause
Product issue:
-
#PPPM-8889 “Custom error pages now work when nginx-only hosting is enabled.”
Fixed in:- Plesk Obsidian 18 February 2020 (Linux)
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround the following steps can be applied:
-
Log into Plesk interface
-
Add the following directives into Domains > example.com > Apache & Nginx Settings > Additional nginx directives for each custom error page
The following example is for 404 not found:
PLESK_INFO: error_page 404 /not_found.html;
location = /not_found.html {root /var/www/vhosts/example.com/error_docs;}Â