zoobie
02-10-2003, 10:48 PM
Forgive my ignorance, but how exactly do subdomains work? I mean, do they have their own index page?
Would site2.myhost.com actually go to site2.myhost.com/index?
Spank you :laugh:
eddy2099
02-10-2003, 11:01 PM
Well, it all depends actually. It depends on how it was set up and the entries in the web server's configuration.
If you are using Cpanel sub-domain function, it would use a sub directory as you have indicated.
But if you do it within the WHM, it can be set up on its own directory on the server.
Yes, each subdomain will have its own index page and can at most part work as if it is its own web site. It can have it's own CGI-BIN too and at times (depending on how it is set up) can have its own email accounts too.
richwalkup
02-10-2003, 11:06 PM
This can actually be a tricky question depending on the system that you are using. When a domain is setup (such as www.xyz.com), the top level domain (or TLD) would be xyz.com. the www prefix is a subdomain of the TLD, although it is customary to use a CNAME alias to point that subdomain directly to its TLD. How the subdomains are handled is completely up to how the DNS server and HTTP server are configured. I think that most packages setup subdomains in their own space with their own configuration, however, I know that CPanel actually sets up subdomains in subdirectories of your primary domain like this:
hosting.xyz.com = www.xyz.com/hosting
So, the answer to your question is basically yes or no depending on how your server is configured.
EDIT - damn, you guys are fast - EDIT
Geek3
02-10-2003, 11:39 PM
Yep, like everyone said above, it CAN work...
however, i know with the latest versions of CPanel, you can actually point where you would like your subdomain to point to (name the folder anything you want)
For example
http://lumber.timber.com can point to http://www.timber.com/fish
Also, be careful though... if you were to point the subdomain to a graphical folder BELOW the subdomain folder, you'll have a mess. you'll either have to include the graphic under the subdomain folder or place the entire URL of the graphic (from timber.com).