Forum Moderators: phranque

Message Too Old, No Replies

multiple IP's, multiple virtual hosts

         

wheel

5:05 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to set up some sites in my Vhosts.conf file. Problem is that I've got multiple IP's with multiple hosts on each IP. I've tried a combination of namevirtualhosts directives but my customers are getting weary of my 'live testing procedures' :).

Here's what I have:
NameVirtualHosts *:80

<virtualhost *:80>
host 1 stuff
</virtualhost>

<virtualhost *:80>
host 2 stuff
<virtualhost>

<virtualhost 123.123.123.123:80>
host 3 stuff
</virtualhost>

<virtualhost 255.255.255.255:80>
host 4 stuff
</virtualhost>

(i.e. one main IP, with some additional hosts on individual IP's. This is working fine.)

However, what I want to do is add a second virtualhost on the same IP address as host 3, i.e. add:

<virtualhost 123.123.123.123:80>
host 5
</virtualhost

However that leaves host 5 actually serving out host 3's content.

In short, how do I set up multiple IP's, with multiple websites on each IP? I'm sure it's straightforward, but the apache docs leave much to be desired and as I noted, my clients are grumpy with my apache restarts :).

thanks!

wheel

4:43 pm on Oct 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any thoughts on this? It seems like a simple problem.

wilderness

2:30 am on Oct 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here's a archive on "virtualhosts":

[google.com...]

wheel

1:34 pm on Oct 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the link to Google!