• 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 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