All subdomains are working except www

Last edited:
OK,
Good thing to know nothing is wrong with my installation.

But, why is this the default?
I think it's illogical:

1: www is in fact a sub domain
although it is common use that root refers to "www" and visa versa, it should be easy to separate them.
In my opinion they should be separated by default. You can easily redirect them to each other trough .htacces or even a php header redirect.

2: sub domains are now folders in my domain root.
so now they are also folders in my "www" sub domain:
http://hi.froz.be is the same as http://www.froz.be/hi
so i can't make a folder in my root (or in my "www" subdomain by that matter) that has the same name as a sub domain.

Anybody else here thinking this is not right?

Anyway, thanks for the answer floyd!
 
In my opinion they should be separated by default.

Unfortunately it is not the opinion of most people. In fact up until a few years ago you had to use www to reach the web site. Just the domain alone would not work and still does not for many sites.

Using www has always been directed to the default site. Yes www is a subdomain for the the web site of the domain. mail.domain.com is the subdomain for handling the mail. ftp.domain.com is the subdomain for handling ftp transfers. That is how the internet was originally structured.
 
Well, you're right about that, I hardly ever type www in my browser.

My old hosting company had www set up as a separate folder, and had the root url redirected to the www sub domain. I just thought that was a better structured way.

But my second argument is still standing ;)
 
so i can't make a folder in my root (or in my "www" subdomain by that matter) that has the same name as a sub domain.

You have not clarified what you mean by "root" directory. Do you mean the users root directory or the domains root directory?

If you mean your domains root directory then yes what you stated is correct (I think since its still unclear to me). The domain's root directory also known as, DocumentRoot, is the public_html directory under the domain name under your home directory. If you create a subdomain hi.froz.be then a subdirectory is created in the public_html directory called "hi." Yes yes therefore you cannot create another subdirectory in public_html called hi since one already exists.

But to bottom line all of this, if you don't like the way it is done then change it to the way YOU want it done. That is the beauty of using DA. You can make many custom changes.
 
You have not clarified what you mean by "root" directory. Do you mean the users root directory or the domains root directory?

If you mean your domains root directory then yes what you stated is correct (I think since its still unclear to me). The domain's root directory also known as, DocumentRoot, is the public_html directory under the domain name under your home directory. If you create a subdomain hi.froz.be then a subdirectory is created in the public_html directory called "hi." Yes yes therefore you cannot create another subdirectory in public_html called hi since one already exists.

But to bottom line all of this, if you don't like the way it is done then change it to the way YOU want it done. That is the beauty of using DA. You can make many custom changes.

I'm sorry, I indeed meant the domains root or DocumentRoot when i stated "root".

I'm starting to realize that customization is indeed the beauty of DA. I'm allready knee deep in brushing up my ssh skills.

Thanks again floyd :)
 
froz,

I love your thinking. Of course by default you wouldn't expect www.example.com and example.com to be the same, but for years that's exactly how the public expects it. And for that reason, that's how DirectAdmin and other Webhosting Control Panels do it.

And those of us (me included) who started doing webhosting back in 1995, when the Internet first became public and commercial, have had to relearn a lot over the years.

For example, you wouldn't believe how many of my domains get offers to purchase because there's no website there at all. Today everyone thinks if you've got a domain but no website then you're not using it.

Jeff
 
Back
Top