include ltd in new virtual host home directory

4 posts / 0 new
Last post
#1 Thu, 10/24/2013 - 12:45
nobodyfamous

include ltd in new virtual host home directory

if I create 2 virtual hosts, first example.com, second example.ca it will create the folders /home/example and /home/example.ca respecivly.

I would like to force the folder to always include the ltd (is that the right term) so the folders will always be example.com, example.ca, example.org etc.

I may be OCD but if I KNOW what the folder is, I don't have to ls it.

P.S. after trying out many control panels, webmin/virtualmin is awesome in everyway! THANKS!

Fri, 10/25/2013 - 04:53
Locutus

There's a configuration option for that. Go to Virtualmin -> System Settings -> Defaults for New Domains and in the field "Home subdirectory", switch to "From template" and enter "$DOM" as template. Then it will always use the full domain name for the home directory, as opposed to the name of the administrative user.

Fri, 10/25/2013 - 15:25
nobodyfamous

Thanks Locutus! I had to do a little digging but you put me in the right place. I was looking in System Settings -> Server Templates . . . it's not there

For me it was in [i]System Settings -> virtualmin Configuration -> Defaults for new domains[/i] (Webmin version 1.660 Virtualmin version 4.03.gpl GPL)

Thanks again!

Fri, 10/25/2013 - 14:31
Locutus

Oh you're right, I forgot the "Virtualmin Configuration" part in the path. :) Glad you found it!

Topic locked