dynamic docroot

ximian

Verified User
Joined
May 10, 2009
Messages
5
Hi all

This is my first post here in Directadmin.
I have setup a new server that has directadmin and after searching a lot of documentation i cannot found what i want to create a feature about dns.
Here goes:

- admin as DOMAIN.NET account.
this means that DOMAIN.NET and WWW.DOMAIN.NET points to /home/admin/public_html
and any subdomain i create with the user da interface will point to a subdirectory (eg: XX.DOMAIN.NET points to /home/admin/domains/DOMAIN.NET/public_html/XX)

- i have created (as administrator) another user, eg: mike
Directadmin will create /home/mike/public_html and a dummy directory too /home/mike/domains/mike.tld/public_html because i don't know if this account will have a specific domain and said that it will have a dummy domain 'mike.tld'.

===========================================
Now the problem: I want to assign 'mike' a temporary subdomain name of DOMAIN.NET so that the user can access its domain by IP/~mike or mike.DOMAIN.NET

How can i do that?
The idea is that any subdomain of DOMAIN.NET will match with a specific docroot automatically (so that mike.DOMAIN.COM will be converted to a DOCROOT = /home/mike/public_html).
Note that i don't want to create a wildcard that always points to DOMAIN.NET (because each subdomain must match against the correspondent user account with that user permissions, that user databases.. etc..). The wildcard must be smart enought to seach for the user account directory public_html.

That's for your help
Francisco A
 
ximian,

I would assume you could create a symlink from the specific docroot to the desired subdir and issue the proper permissions. Then create the DA account and specify the domain name to include the sub.

Ted
 
If you want that aa.domain.net has his own files / account you can easy just create an account with "aa.domain.net" as domain, then its no need for a subdomain.
 
Back
Top