• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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