LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-25-2003, 02:54 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
Posts: 586

Rep: Reputation: 30
Apache: Third Level Domain


I have some confusion about third level and how to create third level domain.

First of all how domain is different from virtual host?

When I create third level domain let's say mike.domain.com. Do I create just a directory and how the directory is differ from domain.con/mike ?


Thanks
 
Old 06-25-2003, 03:55 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
if you want to create a third level, you'll need to have a valid DNS entry for it first. (the name server for domain.com will need to know about mike.domain.com)

You can have an entry in your httpd.conf for domain.com and if you want to use domain.com/mike you will only need to place /mike in the DocumentRoot for domain.com

If you wish to have apache serve pages for mike.domain.com (provided you have the correct DNS info) you can use a VirtualHost directive with ServerName mike.domain.com and a DocumentRoot pointing to wherever you placed /mike. placing /mike inder the DocumentRoot for domain.com would allow you to access the pages via domain.com/mike or mike.domain.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
domain and apache Smokey Slackware 4 06-25-2005 02:16 PM
Apache domain name zeroGsa Linux - Software 4 04-20-2005 12:37 PM
apache sub domain ? c0nsur Linux - Software 7 04-16-2005 12:43 PM
DNS & Top Level Domain JJX Linux - Networking 2 03-28-2004 07:56 AM
apache log level alaios Linux - Networking 1 12-08-2003 10:40 AM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration