• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue (custom) Error pages not Working

roberto bruzzese

New Pleskian
In the last few days I have noticed that if a wrong url is written in my domain , a redirection to the custom error pages does not follow. Perhaps something happened in the last update. So I have rewritten the custom error page directives in my apache as follow:

Alias /custom_error_pages /var/www/vhosts/www.studiopsicologiaabruzzo.it/custom_error_pages

ErrorDocument 400 /bad_request.html;
ErrorDocument 401 /unauthorized.html;
ErrorDocument 403 /forbidden.html;
ErrorDocument 404 /custom_error_pages/not_found.html;
ErrorDocument 405 /method_not_allowed.html;
ErrorDocument 406 /not_acceptable.html;
ErrorDocument 407 /proxy_authentication_required.html;
ErrorDocument 412 /precondition_failed.html;
ErrorDocument 414 /request-uri_too_long.html;
ErrorDocument 415 /unsupported_media_type.html;
ErrorDocument 500 /internal_server_error.html;
ErrorDocument 501 /not_implemented.html;
ErrorDocument 502 /bad_gateway.html;
ErrorDocument 503 /maintenance.html;

I have created the new directory /custom_error_pages and written the files inside. But that still is not working and the result is a wrong page as the following attached.
Schermata 2020-02-16 alle 17.42.37.png
 
Back
Top