I want to change the default index.html created with new domains.
Whenever a new User or new domain is created, they recieve a default index.html file in their public_html directory.
If you wish to customize this holder page that they will receive, you can edit the index file in the following directory:
is the name of the account which is creating the User (eg: "admin").
All files within this default directory (sometimes known as a skeleton directory) are copied to the User's public_html folder, chowned to that User. You can use an index.php or index.shtml file if you wish (or whatever you want), however only the index.html file (if it exists) will be tokenized. The following tokens are avaiable:
Note that all files in the default directory must be world readable (755) becaues they're copied over by a process running as the new User. Any directory in the default directory will also be copied.
If you want to set the default values that will be copied to /home/reseller/domains/default for new Admins or Resellers, using this guide
modify the default directory in the templates directory. Use /usr/local/directadmin/data/templates/custom/default for your customized data.
Related: domain_create_pre.sh and domain_create_post.sh
if you want to run a script before or after the domain is created.