no-default only listens for IPv6
tostr7191 opened this issue · comments
Otto Strassen commented
I was just trying to build an ansible role with this configuration as the basis. Is it on purpose that the config only listens on :::80
but not on :80
?
Specifically in ./sites-available/no-default
listen [::]:80 default_server deferred;
should be
listen 80 default_server deferred;
listen [::]:80 default_server deferred;
in my opinion. But I am not very familiar with the config or nginx.
Thanks & best
tostrio
Roland Warmerdam commented
The default server should be changed to:
listen [::]:80 default_server ipv6only=off deferred;
Then all further listen [::]:80
will automatically listen on both.
Otto Strassen commented