How to create custom error page for a subscription in Suspended status

Created:

2016-11-16 12:40:00 UTC

Modified:

2017-08-16 17:36:16 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to create custom error page for a subscription in Suspended status

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Question

How to create custom error page for a subscription in Suspended status, so that subscriber could see a notification about subscription suspension when opening domain name?

Answer

This functionality is not supported in Plesk at the moment. You may want to suggest new functionality in Plesk on Plesk User Voice portal.

The top-ranked suggestions are likely to be included in the next versions of Plesk. You can get the information about the updates in our products in the following public sources:

As a workaround, it is possible to customize the "503 Service Temporarily Unavailable" page manually:

1. enable custom error documents for all suspended domains:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -N -e" SELECT name FROM domains WHERE status=16" | while read i; do /usr/local/psa/bin/domain --update $i -err_docs true ; done

2. customize /var/www/vhosts/example.com/error_docs/maintenance.html file for every suspended domain. The list of suspended domains can be obtained using the following command:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -N -e" SELECT name FROM domains WHERE status=16"

Additional information:

213370209 How to create custom error pages?

Have more questions? Submit a request
Please sign in to leave a comment.