IPv6 support

This commit is contained in:
Jack Wearden 2014-08-20 23:54:07 +01:00
parent 3db5d61f81
commit 2ac65dbb5d
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name
server {
# don't forget to tell on which port this server listens
listen [::]:80 ipv6only=on;
listen 80;
# listen on the www host
@ -16,6 +17,7 @@ server {
server {
# listen 80 deferred; # for Linux
# listen 80 accept_filter=httpready; # for FreeBSD
listen [::]:80 ipv6only=on;
listen 80;
# The host name to respond to