How to create subdomains outsite of public_html - avoid folder conflicts and chaos

netstepinc

Verified User
Joined
Jul 2, 2006
Messages
73
Location
Seattle, WA Area
I used DA for 8 years on one of my servers, but have been stuck on Plesk for a while on my last server.
I HATE Plesk but one thing it does that makes sense is it stores the subdomains outside of the web directory.

I found that to be extremely helpful because it kept my main site very uncluttered and manageable.
For example, I set up 150 dev sites as subdomains for this one system.
In addition, there are address conflicts with folders and subdomains.
http://media.domain.com should be different than http://domain.com/media

What would it take/is it reasonable to configure DirectAdmin to create subdomains outside of the /public_html folder?

<domain>/public_html
<domain>/subdomains/subdomain1
<domain>/subdomains/subdomain2
<domain>/subdomains/subdomain3
<domain>/subdomains/subdomain4...150
 
Hello,

For now you can only either add sub-domains as regular domains, or write a set of POST/PRE scripts to achieve the desired. Some time ago I did such a set, but I'm not using it now. Please search the forums, as there might be even some ready 3rd party solutions and guides (have no links here by me), or I could as well as some other guys here assist you in terms of a commerce service.

p.s. the feature is already in a list of desired things for Directadmin, but still not implemented.
 
So it's possible to add media.domain.com as a regular domain?

I didn't realize that was possible.
That could address my issue.
Thank you for the quick help.
 
Back
Top