由于子域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更改为任何你想要的。











