HEX
Server: nginx/1.29.3
System: Linux 11979.bigscoots-wpo.com 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: nginx (1068)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_open,proc_close,popen,show_source,cmd# Do not modify this line # 1684243876
Upload Files
File: //usr/local/src/centminmod/inc/nginx_errorpage.inc
function funct_nginxerrorpages {

echo "*************************************************"
cecho "* Custom error page setup for Nginx " $boldgreen
echo "*************************************************"

echo "checking if /usr/local/nginx/conf/errorpage.conf"
echo "and custom error pages already exists"
echo "before setting up /usr/local/nginx/conf/errorpage.conf"
echo ""

if [[ ! -f /usr/local/nginx/html/404.html && ! -f /usr/local/nginx/conf/errorpage.conf ]]; then

echo "/usr/local/nginx/conf/errorpage.conf and custom error pages don't exist"
echo "setting up errorpage.conf and custom error pages ..."
echo ""

cp -R $CUR_DIR/htdocs/custom_errorpages/* /usr/local/nginx/html
cp $CUR_DIR/config/nginx/errorpage.conf /usr/local/nginx/conf

sed -i 's/include \/usr\/local\/nginx\/conf\/drop.conf;/include \/usr\/local\/nginx\/conf\/drop.conf;\n#include \/usr\/local\/nginx\/conf\/errorpage.conf;/g' /usr/local/nginx/conf/conf.d/*.conf

else

echo "/usr/local/nginx/conf/errorpage.conf and custom error pages"
echo "already exists ... aborting"
echo ""

exit

fi

echo "*************************************************"

}