Use 2 ip for one domain

WuZun

New member
Joined
Apr 5, 2008
Messages
3
I just move to new VPS use directadmin. The package include 2 ip addresses a.b.c.1 & a.b.c.2
As now, i only use one of it, a.b.c.1:2222 to login to directadmin, a.b.c.1 or mydomain.com to go to website. The second is not config yet.
I want the second ip a.b.c.2 work as a.b.c.1.
Because my VPS is unmanaged so i can not ask them to do it. I tried many time but it didn't work.
Add new ip (a.b.c.2) but when i type this ip, the webpage display

This IP is being shared among many domains.
To view the domain you are looking for, simply enter the domain name in the location bar of your web browser.


Can you help me to solve this.

Thank you.

Zun.
 
If you really need it, you can use DNAT, but the perfomance will be low, and I don't recommend it. If you are using linux, type
iptables -t nat -A PREROUTING -d a.b.c.2 -p tcp -m tcp --dport 80 -j DNAT --to-destination a.b.c.1:80
Or ask somebody else if you have FreeBSD.
 
Back
Top