Sub-server like a Top-level server

8 posts / 0 new
Last post
#1 Sun, 01/04/2009 - 01:26
eustachy

Sub-server like a Top-level server

Hello

I have the primary domain (eg, test.com) and in it, on the basis of the subdomain, I would like to create a site to my friends who have access (Usermin, own home directory, etc.). If I create a subdomain, I can't give them home directory (which would have access to it,and only for it), its own database etc, if I create top-level domain, dns entries migrates to another file (eg friend.test.com) but should, for the proper working to the basic file test.com. Do you have any ideas?

Thanks for help Rafaƅ

Sun, 01/04/2009 - 02:51
tabletguy

I believe what you want is basically a completely separate site, but the NAME is a sub site of the main site, like "friend.mysite.com" so he can treat it as if it was a new site, with it's own public_html, etc.

That is easy. Just create it as a new site, but use "friend.mysite.com" as the name.

It will use one license count from your license, if you are using the pro version, because it is actually an independent site within Virtualmin.

It has everything, new password, new user (if you set a new user), email, etc.

Sun, 06/07/2009 - 07:34 (Reply to #2)
eustachy

<b>Joe wrote:</b>
<div class='quote'>I'm not sure what you mean by &quot;proper working to the basic file test.com&quot;?</div>

Ok. If we create a Top-level domain eg. joe.test.com, Virtualmin create a new zone file for this domain. If my thinking is good, the browser after receiving such a query from a user, ask my server, dns, and my server will check the file zone - test.com, not joe.test.com. In the absence of relevant entries, respond that there is no such address. If my thinking is good. If my thinking is wrong, that every user who has access to area file, can create a subdomain on my domain test.com. In my opinion the area file should be in some way (eg by instruction &quot;include&quot;) attached to the main zone test.com.

Thanks
Rafa&Aring;

Sun, 06/07/2009 - 07:34 (Reply to #3)
eustachy

<b>Joe wrote:</b>
<div class='quote'>I'm not sure what you mean by &quot;proper working to the basic file test.com&quot;?</div>

Ok. If we create a Top-level domain eg. joe.test.com, Virtualmin create a new zone file for this domain. If my thinking is good, the browser after receiving such a query from a user, ask my server, dns, and my server will check the file zone - test.com, not joe.test.com. In the absence of relevant entries, respond that there is no such address. If my thinking is good. If my thinking is wrong, that every user who has access to area file, can create a subdomain on my domain test.com. In my opinion the area file should be in some way (eg by instruction &quot;include&quot;) attached to the main zone test.com.

Thanks
Rafa&Aring;

Mon, 02/23/2009 - 08:06 (Reply to #4)
tpnsolutions
tpnsolutions's picture

Joe,

In setting up a &quot;sub-server&quot; which is really a &quot;sub-domain&quot; of an existing domain, I'd like to have the zone files combined.

Ex.

mydomain.com =&gt; mydomain.com.hosts
subdomain.mydomain.com =&gt; mydomain.com.hosts

It seems this behavior is configurable ONLY when setting up a &quot;sub-domain&quot; type record.

However, I like the separation used when setting up &quot;sub-servers&quot; (new sub-server is added to &quot;~username/domains/subdomain.mydomain.com&quot; directory) as opposed to the way &quot;sub-domains&quot; work (new sub-domain is added to &quot;~username/public_html/subdomain&quot;)

Any help in this area would be appreciated. (a workaround, or a solution respectively)

--
Best Regards,
Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Mon, 02/23/2009 - 08:10 (Reply to #5)
tpnsolutions
tpnsolutions's picture

*** Just to Clarify: I do realize that sub-servers can be totally different domains. In this case, a new zone file would be appropriate. My question is focusing on those domains which are sub-domains of an existing domain. Thanks ***

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Sun, 01/04/2009 - 13:19
Joe
Joe's picture

<div class='quote'>If I create a subdomain, I can't give them home directory (which would have access to it,and only for it), its own database etc</div>

I assume (hope) you mean sub-server (sub-domain account types are deprecated, and were never a good idea...we added them to make a few cPanel users more comfortable, but it confused everybody else). But, yes, that's the way sub-servers work. A sub-server is designed to allow one user to have many sites--no matter what they're named.

<div class='quote'>if I create top-level domain, dns entries migrates to another file (eg friend.test.com) but should, for the proper working to the basic file test.com.</div>

I'm not sure what you mean by &quot;proper working to the basic file test.com&quot;?

If delegation isn't being setup properly when you create new subdomain named virtual servers, that'd be a bug (I use this all the time, though, so I really doubt there are any issues with this, assuming you've got your glue records at your registrar configured correctly). But, as with pretty much everything in Virtualmin, this behavior is configurable.

If you really don't want a new zone for each virtual server, just configure Virtualmin to put them all in the parent zone. Edit the Server Template(s) you use, and in the &quot;BIND DNS Domain&quot; section, set &quot;Add sub-domain DNS records to parent domain?&quot; to Yes.

--

Check out the forum guidelines!

Sun, 01/04/2009 - 16:48
Joe
Joe's picture

You're thinking is all wrong. DNS doesn't work the way you think it does. ;-)

--

Check out the forum guidelines!

Topic locked