- Plesk for Linux
"503 Service Temporarily Unavailable" page is shown if domain is suspended in Plesk.
How to create custom error page for the domain in Suspended status to hide this error?
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.
A workaround for every suspended domain:
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.