listen with ssl

Valentin V. Bartenev vbart at nginx.com
Tue Oct 14 13:38:24 UTC 2014


On Tuesday 14 October 2014 16:28:17 Donatas Abraitis wrote:
> Hello,
> 
> is it possible to make nginx listen like this:
> 
> 0.0.0.0:443
> 127.0.0.1:443
> 
> Because using such confuration I'm getting error bind() .. Address already
> in use.
> 

events {}

http {
    server {
        listen 0.0.0.0:443 ssl;
    }
    server {
        listen 127.0.0.1:443 ssl;
    }
}


It works for me perfectly.

You should consult with the documentation: http://nginx.org/r/listen
And if it will not help, then please specify more details.

  wbr, Valentin V. Bartenev



More information about the nginx-devel mailing list