Creating a custom index.html for new subdomains

Since there is no template for the subdomain index.html (will likely change), you can still create your own index.html files for them, but you have to use the subdomain_create_post.sh file.

Create:

/usr/local/directadmin/scripts/custom/subdomain_create_post.sh

In it, put something like:

#!/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;

Then chmod the subdomain_create_post.sh to 755. Obviosly, change /your/custom/index.html to whatever you'd like.

 
config/index_custom.txt · Last modified: 2010/02/22 03:09 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki