How to configure custom error page in Plesk 9.3 for non existing folder?

Posted by Junior Mayhé on Server Fault See other posts from Server Fault or by Junior Mayhé
Published on 2010-04-09T16:30:40Z Indexed on 2010/04/09 16:33 UTC
Read the original article Hit count: 398

Filed under:
|
|
|

I'm trying to configure Plesk in order to show website visitors a custom error html.

The current hosted site is an ASP.NET site. This site shows its custom errors on error403.aspx and error404.aspx files.

Now to comply with plesk, I've created error_docs with required files like forbidden.html, etc...

When user try to navigate http://mysite.com/a_missing_page.aspx, the visitor is redirected to error404.aspx correctly.

But when user try to navigate to a non existent directory http://mysite.com/a_missing_folder/ the site takes me to IIS 404 regular page.

Plesk has Custom error documents activated on Web hosting settings. ASP.NET Error pages defined in web.config are showing fine. But it seems plesk wont show its custom html error documents.

The bottom line here is about setting up a custom error page to a directory. Is it possible to do this using Plesk or do I have to change it manually on IIS?

© Server Fault or respective owner

Related posts about plesk

Related posts about custom-errors