- Plesk for Linux
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?
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.
As a workaround it can be done manually. Below, is an example for "503 Service Temporarily Unavailable" page at domain example.com:
2. 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
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"
file for every suspended domain.