File Upload/Storage Question

  • bgraybr
  • Novice
  • Novice
  • No Avatar
  • Joined: Jan 11, 2009
  • Posts: 26
  • Status: Offline

Post April 27th, 2009, 5:48 pm

I've seen some webpages with URL's that look like this one:

http://www.test.example.com/

The part I am wondering about is the . in the middle, what does it represent?

Sorry if this question is vague I really didn't know how to word it.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 27th, 2009, 5:48 pm

  • Breeze
  • Photographer
  • Guru
  • User avatar
  • Joined: Apr 22, 2007
  • Posts: 1029
  • Loc: Australia
  • Status: Offline

Post April 27th, 2009, 5:54 pm

http://www.test.example.com/ is a subdomain.
http://www.example.com is the domain.

I'm sure there are people who could explain it a bit more thoroughly, but it's like a website within a website.
Photography Gallery | aaronmarc.id.au
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 27th, 2009, 7:59 pm

http://test.example.com/

Test is a subdomain while example is a domain.

The . represents the separator... it basically tells that test is part of example.

And by the way, there are no www's when a subdomain is present...

http://www.domain.com is correct
sub.domain.com is correct
http://www.sub.domain.com is incorrect

Breeze basically got that right :lol:
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Breeze
  • Photographer
  • Guru
  • User avatar
  • Joined: Apr 22, 2007
  • Posts: 1029
  • Loc: Australia
  • Status: Offline

Post April 27th, 2009, 7:59 pm

Bogey wrote:

http://www.domain.com is correct
sub.domain.com is correct
http://www.sub.domain.com is incorrect

Breeze basically got that right :lol:


Forgot that bit though :P
Photography Gallery | aaronmarc.id.au
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 27th, 2009, 8:01 pm

Breeze wrote:
Bogey wrote:

http://www.domain.com is correct
sub.domain.com is correct
http://www.sub.domain.com is incorrect

Breeze basically got that right :lol:


Forgot that bit though :P

You did :)


But we all do forget things
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post April 28th, 2009, 6:32 pm

Well actually, www is a subdomain Bogey ;)
Wikipedia wrote:
A domain name usually consists of two or more parts (technically labels), which are conventionally written separated by dots, such as example.com.

  • The rightmost label conveys the top-level domain (for example, the address www.example.com has the top-level domain com).
  • Each label to the left specifies a subdivision, or subdomain of the domain above it. Note: “subdomain” expresses relative dependence, not absolute dependence. For example: example.com is a subdomain of the com domain, and www.example.com is a subdomain of the domain example.com. In theory, this subdivision can go down 127 levels. Each label can contain up to 63 octets. The whole domain name may not exceed a total length of 253 octets. [6] In practice, some domain registries may have shorter limits.
  • A hostname refers to a domain name that has one or more associated IP addresses; ie: the 'www.example.com' and 'example.com' domains are both hostnames, however, the 'com' domain is not.

http://en.wikipedia.org/wiki/Domain_name_system
#define NULL (::rand() % 2)
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 28th, 2009, 7:17 pm

I know SpooF, the reason www. is not allowed in a sub-domain site (http://www.sub.domain.com) because I don't think you can have two subdomains in one time... (sub1.sub2.domain.com) and that is what that is doing...

You can get around that by making one subdomain with a period between two words (my.poems.profile.com)... (At some hosts at least anyway).
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post April 28th, 2009, 9:10 pm

You can stack subdomains 127 levels. Most host have apache (or what ever they are using) configured so it automaticly include the www subdomain.
#define NULL (::rand() % 2)
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post April 28th, 2009, 9:21 pm

SpooF wrote:
You can stack subdomains 127 levels. Most host have apache (or what ever they are using) configured so it automaticly include the www subdomain.

Well, that's now what I read on some sites... I've actually read a ticket on some hosting company's knowledge base about one user asking how to have a subdomain work with www. in front and they told that user to simply create a subdomain with a www. in front of it by default...

Now that I talk about this, that domain is WebFaction, and they don't use cPanel. And I don't really know how their Apache is set up (or what ever they are using).
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Breeze
  • Photographer
  • Guru
  • User avatar
  • Joined: Apr 22, 2007
  • Posts: 1029
  • Loc: Australia
  • Status: Offline

Post April 28th, 2009, 11:21 pm

So what happens if you have a domain like Bogey says with periods ... like "example.this.is.one.of.them.com" and then someone has "this.is.one.of.them.com" and wants to add the subdomain "example"?
Photography Gallery | aaronmarc.id.au
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post April 28th, 2009, 11:25 pm

well you buy the second level domain on .com domains, you buy the third level domain on co.uk domains. So you can't buy "example.this.is.one.of.them.com" you buy "them.com" so the person with "example.this.is.one.of.them.com" already owns "this.is.one.of.them.com", go to godaddy and try to buy a domain with periods in it other than the extending tld

@bogey, thats just how webfaction is set up, but each level of a domain is seperated by a period.
#define NULL (::rand() % 2)
  • Breeze
  • Photographer
  • Guru
  • User avatar
  • Joined: Apr 22, 2007
  • Posts: 1029
  • Loc: Australia
  • Status: Offline

Post April 28th, 2009, 11:28 pm

I get it ... I think :D
Photography Gallery | aaronmarc.id.au
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post April 28th, 2009, 11:37 pm

If you really wanted too you could buy a domain and sell sub domains off it, all you would need to do is set up dns forwarding.
#define NULL (::rand() % 2)
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post April 29th, 2009, 12:34 pm

It works a lot like a file path, but going in the oppisite direction, and it uses a dot separator instead of forward slashes.
Strong with this one, the sudo is.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post April 29th, 2009, 1:19 pm

Kind of makes you wonder why it was structured in reverse...

http://com.ozzu.www/forums.html
The Beer Monocle. Classy.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 29th, 2009, 1:19 pm

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 102 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.