directadmin

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

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

来源:梦飞科技 作者:梦飞 浏览量:183 更新:2018-05-08
由于子域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更改为任何你想要的。

部分文章来源与网络,若有侵权请联系站长删除!