• 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 Wrong Url cannot be handled

roberto bruzzese

New Pleskian
I have spent a lot of time trying to solve errors in handling the wrong url requests with Plesk.
If the Wong url is typed in the address space the following error appears:

Not Found
The requested URL /psicologo/index.html(888 was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Nevertheless I have tried in many ways to handle this error by inserting the following additional nginx directives :

location ^~ /custom_error_pages/ { root /var/www/vhosts/studiopsicologiaabruzzo.it/custom_error_pages; }

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


But the page is not handled at all . It seems that Plesk does not work at all!!

Is there any who can help me ?
Thank. Bye
 
Back
Top