Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
When a domain is suspended in Plesk a site "503 Service Temporarily Unavailable" is shown. How to create a custom error page for the domain in Suspended status to hide this error?
Answer
-
Customize the error page using the link Edit error page in Websites & Domains > example.com
Note: The link Edit error page is displayed only if hosting plan provides the option to customize web server error documents (the Custom error documents is On in the domain settings in Websites & Domains > example.com > Hosting Settings).
Server-wide solution for new domains
- Modify default template for "error_docs"
- Open Service Plans > plan_name > Hosting Settings, enable "Custom error documents" as per this article
Additional Information
To customize other error pages, follow the instructions from this article.
Comments
4 comments
Workaround on IIS:
Edit or create the web.config file and put the following.
<httpErrors>
<error statusCode="503" path="/errorpages/maintenance.html" responseMode="ExecuteURL" />
</httpErrors>
Then create /httpdocs/errorpages/maintenance.html (or copy from /error_docs/maintenance.html) and edit it.
@Enlighten Designs thank you for sharing!
this feature in user voice is not available :( https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/4165937-custom-suspended-page
@Ido Cohen
The link Edit error page is displayed only if your hosting plan provides the option to customize web server error documents. Check that the Custom error documents is On in the domain settings in Websites & Domains > example.com > Hosting Settings.
Please sign in to leave a comment.