LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Running Two Web Sites On the same server (https://www.linuxquestions.org/questions/linux-networking-3/running-two-web-sites-on-the-same-server-22860/)

Chijtska 06-07-2002 05:21 PM

Running Two Web Sites On the same server
 
My questions is simply this:

Is it possible to run 2 or more websites on the same apache server or is it impossible?

trickykid 06-07-2002 05:27 PM

you can have 2 or more websites on the same apache server.. using the same IP of course too..

Chijtska 06-07-2002 05:38 PM

any idea how to do that? its not mentioned in the docs...

RWallett 06-08-2002 11:13 PM

You need to set up apache to use virtual hosts. Not too sure how to do it, as I've never tried, but there's a (brief) introductory explanation in the book "Linux: Network Solutions for your Office" by Viktor Toth (published by Sams, I believe), by checking in the www.apache.org web site (again, look for Virtual Hosts references) or by searching on Google.

Virtual Hosts let you bind multiple IP addresses to a single NIC--pretty cool. Then apache can display the appropriate default web page based upon the IP address of the incoming requests. WAY cool!


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