LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-31-2003, 05:41 PM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
apache configuration inq


Hello everybody,

RH9
-I have a router at home that i use to connect to the internet..
- purchased sec. pc to play with linux.
so far i was able to setup the web server... The default page that i created seem to indicate that its working.

to further expermient, i setup another virtual host site.. so i have test1 site and test2 sites.(virtual hoost name:test1 or test2).
- from my windwos machine i was able to access the default page(test1) by using ip address..

*1. how can i setup it up so, insted of using ip address i can just type in test1 or test2 to display the page.
i'm assuming it has something to do with dns configuration but where or how do i do this.
- this is an internal webhosting.
 
Old 08-31-2003, 05:49 PM   #2
bblank
LQ Newbie
 
Registered: Aug 2003
Location: Overland Park, KS
Distribution: RedHat 9.0 (Shrike), RedHat 8.0 (Psyche), FreeBSD, OpenBSD, Solaris 7-9 SPARC
Posts: 18

Rep: Reputation: 0
Robin01,

In order to use name-based virtual hosts in apache 2.x you will need to set up name resolution for each of your virtual hosts to an ip address (mult. hosts -> 1 ip).

I'm assuming, given your setup that you are not running your own DNS server. Therefore to do this, each system attempting to access your web server would need the appropriate entries in /etc/hosts or in C:\WINNT\System32\Drivers\etc\hosts on a windoze box.

From there, you can set up name based hosting as shown in apache's documentation:

http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Good luck!

BB
 
Old 08-31-2003, 06:28 PM   #3
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
thanks

woohooo it worked...
thanks
 
  


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
enable port inq Robin01 Linux - Newbie 4 01-01-2004 02:57 PM
postfix inq. Robin01 Linux - Newbie 1 12-27-2003 08:25 PM
bash_profile inq Robin01 Linux - General 1 12-10-2003 10:30 PM
apache iptables inq. Robin01 Linux - Newbie 1 10-04-2003 12:53 PM
ftp configuration and inq. Robin01 Linux - Newbie 2 09-01-2003 02:50 PM


All times are GMT -5. The time now is 12:21 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