LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   subdomain question (https://www.linuxquestions.org/questions/linux-newbie-8/subdomain-question-650564/)

cool47 06-20-2008 12:03 PM

subdomain question
 
hello,

I have network setup with dns and webserver. I want to add a subdomain to my site.
present condition is
#lynx www.example.com o/p display the index page
#lynx www.example.com/home o/p display the subdomian home.example.com

Question how do i do this one
#lynx home.example.com o/p i want to display the subdomain home.example.com

thanks in advance

nathacof 06-20-2008 02:34 PM

If you are running Apache then you need to declare your IP as a NameVirtualHost, unless you have another IP to spare. Then you can configure any number of domains/subdomains using virtualhost configurations.

http://httpd.apache.org/docs/2.2/vhosts/


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