Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this 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 mysite.com/a_missing_folder and users is redirected to the correct error403.aspx page. Can Plesk do this? –  Junior Mayhé Apr 9 '10 at 16:43
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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