欢迎来到云服务器

Directadmin Linux面板

为新的子域创建一个自定义的index.html

由于子域index.html没有模板(可能会更改),因此您仍然可以为它们创建自己的index.html文件,但必须使用subdomain_create_post.sh文件。
 
创建:
 
/usr/local/directadmin/scripts/custom/subdomain_create_post.sh
 
其中,如下内容:

#!/bin/sh
INDEX=/home/$username/domains/$domain/public_html/$subdomain/index.html
rm -f $INDEX
cp /your/custom/index.html $INDEX
chown $username:$username $INDEX
exit 0;


然后chmod subdomain_create_post.sh到755。
明显地,将/your/custom/index.html更改为任何你想要的。

腾讯云代理

Copyright © 2003-2021 MFISP.COM. 国外vps服务器租用 梦飞云服务器租用 版权所有 粤ICP备11019662号