LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2012, 07:12 AM   #1
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
What does adding a subdomain for a webhosting package do?


Hi,
If I have bought a domain, poo.com where I have put up a website, what needs to be done to add a bar.poo.com subdomain, whose site I want to upload in a particular directory, say poo.com/testdir/ ?

I don't want a DNS or BIND tut, I'm more interested in the theory - what actually HAPPENS, and then I can get to those tuts in my own time.


Thx.
 
Old 01-22-2012, 10:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Not sure what you mean by what happens... a new DNS entry exists, so that domain resolves to an IP. For a web server, the HTTP Host header contains the new domain and the web server generally uses that to apply a different set of config, a VirtualHost in Apache, including a different documentroot. There is no black magic, no concept of a sub domain relative to a parent domain, just different names which get used in different ways according to your configuration.

Nothing to do with Networking. Moved to Linux - Server.
 
Old 01-23-2012, 05:38 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Taking DNS in full, poo.com is really poo.com. and is actually a subdomain of com. which is delegated from .

By convention the trailing . is usually ignored though and people are much more used to thinking of the main domain extensions as "top level"
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND9 - adding subdomain yah0m Linux - Networking 5 04-18-2021 09:23 AM
Create webmail subdomain on Plesk master domain. (reserved subdomain) fruitwerks Linux - Server 0 08-11-2010 03:08 PM
Anjuta 2.2.0 package adding ? queency Programming 0 11-09-2007 07:33 PM
Adding initials to checkinstall package? BroX Linux - Software 6 12-21-2005 08:16 AM
adding a user from a package? akohlsmith Slackware 6 07-08-2002 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration