Subdomains completely seperate from Subdirectory? Possible??

Andrax

Verified User
Joined
Oct 6, 2003
Messages
44
Location
[r o o t]
One of very few pet peeves of mine about DA is the way SubDomains are handled.

The reason that I don't like them is that when you create a subdomain id DA, its both a subdomain and a subdirectory. Say I make a forums subdomain. That url is http://forums.mydomain.com

Well, people can get to the same location if they go to http://www.mydomain.com/forums

It's not a fatal issue or anything, its just one of those things that bugs me for whatever reason. So I thought I would post and see if anyone else felt the same way, and find out if its possible or planned to make a SubDomain JUST a Subdomain instead of both SubDomain and SubDirectory.

As a point of refrence, as a former Ensim user, SubDomains were created via FTP, and a user would simply create a folder in their public_html directory named subdomain.domain.com & from that moment on, that subdomain was ready to go. Going to http://www.domain.com/subdomain doesn't work because the subdomain is ONLY a subdomain.

;)
 
Hello,

Just change the template :)
Code:
cd /usr/local/directadmin/data/templates
cp virtual_host*sub.conf custom
cd custom
#edit the 2 files to change the paths that are used.

John
 
Sorry to bring up a very old post, but I'm having the same question as the TS. I opened the virtual_host_sub.conf file, but what do I need to change in the file?
 
It's not a fatal issue or anything, its just one of those things that bugs me for whatever reason. So I thought I would post and see if anyone else felt the same way, and find out if its possible or planned to make a SubDomain JUST a Subdomain instead of both SubDomain and SubDirectory.

I would like the same thing, so that the subdomain is not created inside public_html for the top level domain, but instead is created outside of public_html, just like regular domains. When subdomains is created inside public_html for the existing domain, it can cause trouble if there is a .htaccess file in public_html for the regular domain, which then is inherited to the subdomain (because it is in a subdirectory), this can sometimes be a problem.

The best would be if subdomains was created in this path: /home/USER/subdomains/sub.domain.com/ - however if DirectAdmin add this change in the future, it is needed to make it possible for us to convert existing subdomains to the new path.
 
The simplest thing to do by far is to add the sub domain as a regular domain.
 
The simplest thing to do by far is to add the sub domain as a regular domain.

We offer webhotel on shared hosting, and limit the packages to 50 domains. However we offer 250 subdomains. Therfor it is better for the customer to add a real subdomain, so that the customer is not forced to use one of the 50 domains for a subdomain.
 
Back
Top