Default Virtualmin Parked Website Page

6 posts / 0 new
Last post
#1 Fri, 11/11/2011 - 13:52
comtoistech

Default Virtualmin Parked Website Page

Is there a way to setup a default parked website page for each new virtual server? Doing this would allow users to know that their website is up and running properly rightaway.

Do I have to create my own HTML page and copy it to each public_html location manually?

Fri, 11/11/2011 - 14:23
ronald
ronald's picture

you can place the folders and a page in /etc/skel and tune that setting in your server template. It is enable by default. It will copy the page to every virtual server created.

Fri, 11/18/2011 - 02:12
comtoistech

I tested it and it worked (auto-copied files) with my test sub-server, however when I ftp into the folders I found that it copied the files into the test.domain.tld folder instead of the test.domain.tld/public_html folder

Is this correct? The link is not working so I can't tell if it works like this

Fri, 11/18/2011 - 03:15
ronald
ronald's picture

You'll have to create the structure so the system knows where to place the files...
you can copy files into the root of the domain and in the public root..
/etc/skel/etc/php/php.ini
/etc/skel/public_html/index.html

Fri, 11/18/2011 - 12:28
comtoistech

I changed the templates for both servers and sub-servers to use /etc/skel/public_html and moved the default site files into it but it still copies those files to the root of the domain instead of /public_html in those domains

I know I can just copy the files manually to the domains but I want it automated correctly.

Wed, 11/23/2011 - 16:58
ronald
ronald's picture

You should not change the path in the server templates... leave it as /etc/skel
you must add the directory public_html to /etc/skel so you will have /etc/skel/public_html
you can do this by logging in with ftp and create the folder under the above path
Then in /etc/skel/public_html you need to upload the index.html, see attachment

Topic locked