Create a new default index.html template

yes I placed my index.html /etc/skel at he beginning but, still, the proper index.html was not copied even from there.

anyways I now tried to copy my index.html to /etc/skel and then edited the path in both:
Virtualmin > Systems settings > Server Templates > Default settings > Home directory
Virtualmin > Systems settings > Server Templates > Settings For Sub-Servers > Home directory

to:
/etc/skel/

note: originally it was set without the trailing slash (/etc/skel)

then it worked!

So I thought there is a problem with the default settings in:
Virtualmin > Systems settings > Server Templates > Default settings > Home directory
Virtualmin > Systems settings > Server Templates > Settings For Sub-Servers > Home directory

as they need to include the trailing slash.

Then I edited both values to:
/etc/skel/public_html/

recreated the server but the index.html is not copied :–(

Then I edited both values to:
/etc/skel/

recreated the server and the index.html is properly copied.

So I guess there is probably a bug in the code as this behaviour is really strange.

If you like I can give you access to the panel, this is just a test server I created to test Virtualmin before I adopt it, so you can see by yourself.

Anyways this is a brand new installation on a freshly created server, so it should work as expected.

Thank you