default index page while creating a new virtual server

3 posts / 0 new
Last post
#1 Fri, 01/14/2011 - 21:14
adrianmak

default index page while creating a new virtual server

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!!

Sat, 01/15/2011 - 15:12
adrianmak

any possible solution on this matter ?

Sat, 01/15/2011 - 16:13
Locutus

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.

Topic locked