I want to change the default index.html created with new domains.

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » DirectAdmin

I want to change the default index.html created with new domains.Last Modified: Apr 15, 2010, 12:44 am
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:


where resellername 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.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST