LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2008, 12:03 PM   #1
cool47
Member
 
Registered: Mar 2008
Location: Disney World
Distribution: CentOS
Posts: 50

Rep: Reputation: 15
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
 
Old 06-20-2008, 02:34 PM   #2
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Rep: Reputation: 17
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/
 
  


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
Dynamic IP, Bind9, Subdomain Question skorpi0wn Linux - Networking 1 06-04-2009 01:22 PM
Subdomain->IP? johndmann Linux - Networking 5 04-03-2006 04:09 AM
Log file for subdomain question htmlcoder Linux - Newbie 0 05-19-2005 03:43 AM
Subdomain help DoobyWho Linux - General 3 04-14-2003 06:51 PM
subdomain deepak Linux - Networking 2 03-01-2001 09:50 PM


All times are GMT -5. The time now is 08:25 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration