Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Sep 29, 2025, 06:50 AM

Title: How to configure custom error pages for all domains on Plesk server?
Post by: Suhitha on Sep 29, 2025, 06:50 AM
Question: How to configure custom error pages for all domains on Plesk server?


Applicable to:




Answer

1.Download linux_default_skeleton.zip from the How to change the default content for newly created domains in Plesk? article.

Unpack it and modify the content of error_docs directory in a desired way.

2.Compress it back into a .zip archive. Please note that .zip archive should contain all the files and directories in its root (cgi-bin, error_docs, httpdocs and so on).

3.Upload this modified archive in Tools & Settings > Virtual Host Template menu, by selecting a file and pressing Send file button.

4.Enable Custom error documents option for domains/subscriptions using one of the following ways:


1.Connect to the server via SSH

2.Run the following command:

# for i in plesk bin domain --list; do plesk bin domain -u $i -err_docs true; done
Note: Some websites/applications might use their own custom error pages (by means of rewrite rules), so the changes might not be reflected on some domains.