I have nginx running as a web server. The virtual host have the IP specific configuration with IP addresses listed, however whtn I check netstat Nginx is litening on 0.0.0.0:80. I would like to change this to a specific IP. The server has 2 network connections, one public and one private. I do not want nginx on the private address, just the public.
Is there something in the nginx.conf that I can add to specify an IP address or interface where should it listen on?
I know there are the Virtual hosts where I can add them by ip, but that would not change nginx itself from listening only on a certain IP. It would be still 0.0.0.0:80 for example.
Thanks!