Click to See Complete Forum and Search --> : SubDomains


JJ9867
04-16-2003, 11:00 AM
Can someone explain to me what a subdomain is and how it works?

DaiWelsh
04-16-2003, 11:57 AM
a domain is something like

microsoft.com

a subdomain is something like

msdn.microsoft.com
update.microsoft.com
mydomain.microsoft.com

Usually a company or person controls a particular domain that they have registered and can then opt to set up as many sub-domains as they like, though if the domain is hosted by a web-host the number may be restricted by them.

This is significant also in several other issues for example to do with cookies and permissions as x.domain1.com and y.domain1.com may share cookies while x.domain2.com may not.

HTH,

Dai

havik
04-16-2003, 11:59 AM
Subdomains allow you to create second-level domain names, taking the form of whatever.yourdomain.com.

Subdomains can be anything.yourdomain.com. Each subdomain has its own Document Root, where the files reside for that particular subdomain. Just as a client's virtual domain has its files in the "public_html" directory, a subdomain has a Document Root as well.

But instead of providing a class lecture, how about a link to answer your question:

http://www.immunix.org/subdomain.html

Havik

JJ9867
04-17-2003, 12:43 AM
Ok I see the implications for security.

Someone once told me that you could use the subdomains feature to split web hosting space into multiple sections. Like if you would take a 100 mb web hosting plan and somehow give 50 mb to one site like www.1stsite.com and give the other 50 mb to www.2ndsite.com Is this possible or is my source wrong?

Thanks
JJ

havik
04-17-2003, 10:00 AM
You could offer subdomains but the URL won't show up exactly how you posted.

ie: www.internet.com is a domain name. javascript.internet.com is a subdomain of internet.com

So let's say...cnn was offering subdomains and they only had 100 MB of space and offered you 50 MB. Their URL will remain www.cnn.com but yours will be: something.cnn.com

Get it?

Havik

JJ9867
04-17-2003, 03:24 PM
Ok so it will actually be like: one.site.com and two.site.com

Is there a way to mask that and make it appear to be different? Like make one.site.com appear to be www.siteone.com?