These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for default index page while creating a new virtual server on the new forum.
I put public_html/index.html under /etc/skel ie /etc/skel/public_html /etc/skel/public_html/index.html
such that every new created virtual server will have a index page instead.
Right now, the content of index.html is just a simple text, "Your domain works!!"
How could i dynamic put a domain name in the index.html ?
say, Your domain, mytest.com works!! say, Your domain, abc.com works!! say, Your domain, yourdomain.com works!!
any possible solution on this matter ?
Don't be so impatient, it's weekend! :)
Check out System Settings -> Server Templates -> Home directory : Substitute variables in contents. Means: you can use the usual Virtualmin template variables in your
skel
files. Just put e.g.${DOM}
where you wish the domain to appear.