0

I want to have an application running on x.x.x.x:80 and another one at y.y.y.y:80 on the same host. I have bought 2 ips from ovh and would like to know how to do so.

I found these: Debian/OVH: How to configure multiple Failover IP on the same Xen (Debian) Virtual Machine?

But it just makes ip y.y.y.y be the same as x.x.x.x

3 Answers3

1

Okay, so I did setup the ip addresses correctly. But this might be REALLY helpful for others and save a LOT of time. The problem I was having that apache didn't have an ip specified, so all of the ips I setup would lead to apache page. I solved it by adding an ip to apache ports.conf file

0

Yes it is possible with interface aliasing. eth0 will have one IP and eth0:0 will have the other. See this entry in the Debian wiki

Mark Wagner
  • 17,764
  • 2
  • 30
  • 47
-1

This is impossible as the IP address is attached to a NIC card, and each NIC card can only use one IP at once. To have two applications using two IP addresses on one host, you would need two NIC cards (two ports) (this is as far as I know. I may be wrong)