以下是将Hestia控制面板的默认英文错误页面和默认页面替换为简体中文的步骤。如果你需要繁体中文或其他语言,可以下载相应的文件包进行修改并覆盖指定目录的文件。以下是详细的操作步骤:
替换错误页面
替换50x错误页面
wget -O /usr/local/hestia/data/templates/web/skel/document_errors/50x.html https://dns.hestiamb.org/skel/document_errors/50x.html
替换403错误页面
wget -O /usr/local/hestia/data/templates/web/skel/document_errors/403.html https://dns.hestiamb.org/skel/document_errors/403.html
替换404错误页面
wget -O /usr/local/hestia/data/templates/web/skel/document_errors/404.html https://dns.hestiamb.org/skel/document_errors/404.html
替换410错误页面
wget -O /usr/local/hestia/data/templates/web/skel/document_errors/410.html https://dns.hestiamb.org/skel/document_errors/410.html
替换默认页面
替换默认首页
wget -O /usr/local/hestia/data/templates/web/skel/public_html/index.html https://dns.hestiamb.org/skel/public_html/index.html
替换网站暂停服务单页配置文件页面
wget -O /usr/local/hestia/data/templates/web/suspend/index.html https://dns.hestiamb.org/suspend/index.html
替换网站成功访问服务器IP地址配置单页文件
wget -O /usr/local/hestia/data/templates/web/unassigned/index.html https://dns.hestiamb.org/unassigned/index.html
使用一键替换脚本(更简便的方式):
curl -fsSL https://dns.hestiamb.org/tihuan.sh | bash
这个脚本会自动下载文件包并进行替换,省去了手动操作的步骤