Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, the visitor is redirected to error404.aspx correctly.

But when user try to navigate to a non existent directory 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?

share|improve this question

closed as off-topic by HopelessN00b Jan 14 '15 at 5:00

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

I can't see this option in Plesk. I noticed here it can be done on IIS Manager->MySite-> IIS -> Error pages. Change the current 404 to "/error404.aspx", and 403 for "/error403.aspx". Next step at right panel click on "Edit Feature settings" By default IIS presents the option "Detailed errors". Just changed to "Custom error pages" and now It's possible to navigate and users is redirected to the correct error403.aspx page. Can Plesk do this? – Junior M Apr 9 '10 at 16:43
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 14 '15 at 5:00
up vote 4 down vote accepted

Log into the domain admin. open setup Towards the bottom of the page check "Allow custom error messages"

Of course you need some custome error message pages.

Go to "File Manager" open the error_docs directory and hack away.

You will see (barely) in the lowere right corner tabs for design and HTML. Just paste your code into the HTML field.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.