Set up site for two different IP


#1

Hello,

My VPS has a secondary IPv4 address, I want to setup two sites on this site A on IP A site B on IP B

How to do this in EasyEngine?


#2

Nginx listens on all public IPs.

Just configure your DNS accordingly and voilĂ .


#3

In your website nginx configuration, add the IP you want to use in the in front of listen directive :

server {
    listen      192.168.1.2:80;
    server_name example.com www.example.com;
    ...
} 

Where 192.168.1.2 is the IP A or B.


#4