LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache configuration inq (https://www.linuxquestions.org/questions/linux-newbie-8/apache-configuration-inq-87721/)

Robin01 08-31-2003 04:41 PM

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.

bblank 08-31-2003 04:49 PM

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

Robin01 08-31-2003 05:28 PM

thanks
 
woohooo it worked...
thanks


All times are GMT -5. The time now is 08:07 AM.