ip-based vhost not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm having trouble setting up an ip-based vhost. It's something I've
done ok in the past, but this time I just can't get it to work, and have
tried so many variations on the configuration I feel I'm going in circles..

This is a RH4 remotely hosted system with Apache 2.0. It was configured
with one IP address (x.x.x.106) but the provider told me addresses
x.x.x.107-110 were also available. I set up
/etc/sysconfig/network-scripts/eth0:0, eth0:1, eth0:2 and eth0:3 with
the respective IP addresses. ifconfig shows they are available. I can
ping the host on each of the 5 IP addresses.

The vanilla RH apache configuration was working. I set the default
Listen config to '*:80'. I then added a vhost starting

 <VirtualHost x.x.x.107:80>
...

/usr/sbin/httpd -S shows the vhost configuration has been accepted. But
telnetting to x.x.x.107 gives me the pages from the default apache on
x.x.x.106. The 107 vhost log files have been created, but stay at zero
bytes.I cannot actually access my vhost, either externally or locally.

If I change the configuration to add an explicit:

Listen x.x.x.107:80

apache refuses to restart, giving me the error:

(99)Cannot assign requested address: make_sock: could not bind to
address x.x.x.107:80

Can anyone guess where I'm going wrong? Or suggest a testing procedure
better than flailing around making random changes to configuration files?

Thanks
Graham






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux