Re: [SLUG] Apache and multiple sites

From: steve szmidt (steve@szmidt.org)
Date: Sat Feb 25 2006 - 02:53:20 EST


On Saturday 25 February 2006 00:56, Paul M Foster wrote:
> Scenario:
>
> You've got a machine on your internal network which runs apache and
> serves up various internal websites. Currently, they are like:
>
> http://pokey/something.com
> http://pokey/another.com
> http://pokey/yetanother.mars.lan
>
> It would be nice to serve these up with their own internal non-routable
> IPs, like 192.168.10.2, 192.168.10.3, etc., and with their own
> addresses, like www.something.com, another.com, yetanother.mars.lan.
> This server wouldn't be visible from the internet, but only from the lan.
>
> On the subject of apache, I know that apache can serve up multiple sites
> on the same IP address. But can it serve up a multitude of sites on a
> single box, each of which has its own IP (assuming the box has a single
> NIC)?

You can have multiple domains with their own IP on the same box. All you do is
add IP's to the NIC. Ten years ago you were limited to 32 IP's on a NIC but
today I'm sure you don't have that barrier. Apache does not care what it is
you just have to tell it.

What you do if you are adding more IP's to eth0 so you say eth0:1..eth0:n etc.

Under KDE you have the Network Device Control, which let's you into the
Network Configuration where you click on New. Choose the NIC and add a new
IP. When it completes you can see the new connection.

This could be handy if you have more than one subnet on you LAN. For example I
got a cool VoIP/phone/IP tool, but it only worked on 192.168.0 which I don't
use. But by doing the above I could access it without loosing my normal
subnet connection.

-- 

Steve Szmidt

"For evil to triumph all that is needed is for good men to do nothing. Edmund Burke ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:49:49 EDT