Sub-server home dir

5 posts / 0 new
Last post
#1 Mon, 09/10/2007 - 07:15
tomick

Sub-server home dir

Hello! I found in documentation a dir (/home/domain/domains/sub/public_html), where is creating a sub-server.

How I can change this dir to for ex. (/home/domain/public_html/sub/)? I can't find solution for my problem :-(

Mon, 09/10/2007 - 08:06
oMiCRon

If you got to webmin -> servers -> virtualmin virtual servers -> module Config on the tab "Defaults for new domains" you can find the "Home subdirectory" configuration.

I suppose this is what you are looking for .

Mon, 09/10/2007 - 10:14
tomick

No, Is not.

This panel we only using to select dir with a default content for a new server. We don't using them to change a default dir on sub-server. It's a problem :(

Mon, 09/10/2007 - 11:46 (Reply to #3)
Joe
Joe's picture

You're looking for the "Sub-domain" account type. This is a feature we implemented ages ago for recovering cPanel administrators...but we've hidden it, by default, because it's just a confusing sub-set of sub-server functionality.

You can turn it back on in the Module Configuration. Look in the "Defaults for new domains" section for the option labeled "Allow creation of sub-domains?" Turn it on and save it.

After this you'll be able to create Sub-domain accounts.

Note that I don't really recommend this, as it's just kind of a dumb thing that cPanel did years ago to deal with their broken security model (I guess, I can't think of any other rational reason to do it this way). There have been a few discussions here in the forums where I've tried to figure out a good reason for the directories to be laid out this way, and so far we've discovered none other than "it's what I'm used to".

Why do you need the directories to be laid out this way?

--

Check out the forum guidelines!

Mon, 09/10/2007 - 12:01
tomick

No offence Joe - you doing a great job, but you can't break force of habit. For my users "cPanel" subdomains is very good option. Is more easier.

Well... about your solution- i didn't see this option in "Defaults for new domains" :( I'm using GPL version of Virtualmin 3.45 - maybe this is reason why i didn't see?

Topic locked