LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache: Third Level Domain (https://www.linuxquestions.org/questions/linux-software-2/apache-third-level-domain-68027/)

mikeshn 06-25-2003 02:54 PM

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

mcleodnine 06-25-2003 03:55 PM

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


All times are GMT -5. The time now is 02:30 PM.