You may need to Listen multiple IP addresses to be served for a domain, just add like following configuration.
Open a nginx.conf file by text editor vim or vi,
# vim /etc/nginx/nginx.conf
server {
listen 192.168.0.100:80;
listen 192.168.0.200:80;
server_name www.domainname.com;
access_log /var/log/nginx/logs/access.log combined;
error_log /var/log/nginx/logs/error.log warn;
...
}
Once configured on file restart your NGINX server,
# /etc/init.d/nginx restart
Note : If you are managing mutliple virtual hosts on nginx server configure on that file.
Comments (0)