From 8edf174554aabc3a0f3ce66b17a209d87177db0f Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Thu, 13 Jul 2023 14:57:00 -0600 Subject: [PATCH] Subdomain has 404 error page as well --- ehcp/classapp.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/ehcp/classapp.php b/ehcp/classapp.php index 1c08a4a..6366feb 100755 --- a/ehcp/classapp.php +++ b/ehcp/classapp.php @@ -11133,13 +11133,28 @@ function daemondomain($action,$info,$info2='',$info3=''){// domain operations in $index=$this->loadTemplate('defaultindexforsubdomains',False); if(trim($index)==''){ - $index='
+ $index=' +

Subdomain Under Construction

EHCP Force Edition

'; } - if((!file_exists($info3."/index.html"))or(!file_exists($info3."/index.htm"))) $this->write_file_if_not_exists($info3."/index.php",$index); + if((!file_exists($info3."/index.html"))or(!file_exists($info3."/index.htm"))){ + $this->write_file_if_not_exists($info3."/index.php",$index); + if(!file_exists("$homedir/httpdocs/$f")){ + passthru2("cp -f \"error_page.html\" \"$info3\""); + } + } return True; break;