|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Question about SubDomains
I'm not sure if this is the right place, so I'm sorry if it's not.
I use Cpanel to set up SubDomains on my site. I've always set up subdomains with redirection to a folder on my site. Ex: created test.mysite.com and redirected to www.mysite.com/test/ What I want to know is, if I don't set up redirection, how do I tell it where to pull the files from? If I go to test.mysite.com ... how does the browser decide where to pull the index page from? Is this something you put in DNS? or is there something I'm missing.
__________________
Thanks Talia http://www.tagyoureit.org http://web2learning.net http://www.gamecrafters.net |
|
#2
|
||||
|
||||
|
You tell the webserver what the DocumentRoot is. When you visit test.domain.com it will pull index.html from the DocumentRoot directory you specified in the virtual host.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
|
#3
|
||||
|
||||
|
Do you happen to know if there is a way to do this using Cpanel? I only see SubDomain redirection, which explains my confusion.
|
|
#4
|
||||
|
||||
|
I have no idea since I don't use cpanel. I recommend that you get familiar with apache config. There's only the one file, but it's a big one with lots of options you don't even want to try to understand. But you should scroll all the way down to the bottom of the httpd.conf file (possibly located in: /etc/httpd/conf/httpd.conf) and check out the virtual hosts. You should learn how to configure those yourself. CPanel (or any convenience tool) should only be used as a convenience, not an excuse not to learn how to configure the server yourself.
Documentation for Name-Based Virtual Hosts on Apache 1.3 http://httpd.apache.org/docs/vhosts/name-based.html Documentation for Name-Based Virtual Hosts on Apache 2.0 http://httpd.apache.org/docs-2.0/vhosts/name-based.html |
|
#5
|
||||
|
||||
|
I don't have access to that ... we're paying a hosting company to host our site.
I know how to set up Virtual hosts, as I've done it before, it's just that I don't have the ability to do it for this site ![]() Thanks for your help though! |
|
#6
|
||||
|
||||
|
Ah, that sucks. Maybe you should change web hosts if cpanel doesn't support it.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Question about SubDomains |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|