DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 14th, 2004, 07:36 AM
talia679's Avatar
talia679 talia679 is offline
Always something else to learn
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: PA
Posts: 691 talia679 User rank is Private First Class (20 - 50 Reputation Level)talia679 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 14 h 2 m 37 sec
Reputation Power: 5
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.

Reply With Quote
  #2  
Old April 14th, 2004, 08:55 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
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

Reply With Quote
  #3  
Old April 14th, 2004, 10:22 AM
talia679's Avatar
talia679 talia679 is offline
Always something else to learn
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: PA
Posts: 691 talia679 User rank is Private First Class (20 - 50 Reputation Level)talia679 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 14 h 2 m 37 sec
Reputation Power: 5
Do you happen to know if there is a way to do this using Cpanel? I only see SubDomain redirection, which explains my confusion.

Reply With Quote
  #4  
Old April 14th, 2004, 11:00 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
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

Reply With Quote
  #5  
Old April 14th, 2004, 11:43 AM
talia679's Avatar
talia679 talia679 is offline
Always something else to learn
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: PA
Posts: 691 talia679 User rank is Private First Class (20 - 50 Reputation Level)talia679 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 14 h 2 m 37 sec
Reputation Power: 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!

Reply With Quote
  #6  
Old April 14th, 2004, 11:58 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Ah, that sucks. Maybe you should change web hosts if cpanel doesn't support it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Question about SubDomains


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway