Tips:Error Documents
From VHCP Support
Making Global Changes to Error Documents
By default, the VHCP error documents held in /vhcp/gui/errordocs are just a simple template for all 401, 403, 404, and 500 errors. With a little modification and a small script you can install your own custom version on all customers domains.
Simply edit the existing document (/vhcp/gui/errordocs/index.php) to how you like, then to update all users on the system, execute the following script:
#!/bin/bash
root=/var/www
for domain in `ls /var/www/virtual/`; do
echo $domain
cp -R $root/vhcs2/gui/errordocs/index.php $root/virtual/$domain/errors/404/
cp -R $root/vhcs2/gui/errordocs/index.php $root/virtual/$domain/errors/403/
cp -R $root/vhcs2/gui/errordocs/index.php $root/virtual/$domain/errors/401/
cp -R $root/vhcs2/gui/errordocs/index.php $root/virtual/$domain/errors/500/
done
NOTICE! This will overwrite any custom error docs your users have set
