diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-06 19:15:36 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-06 19:24:48 -0700 |
commit | 32b340b88915ec945ebdbfa11b7da242860a6f44 (patch) | |
tree | 15001dee8907465d74b29853b43966aad19e9e1f | |
parent | f4b9c1cb92711a62ae047368d7694c5050d27f2c (diff) | |
download | unicorn-32b340b88915ec945ebdbfa11b7da242860a6f44.tar.gz |
IPv4-mapped-IPv6 addresses are fugly.
-rw-r--r-- | examples/nginx.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/nginx.conf b/examples/nginx.conf index 9f245c8..368e19e 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -87,6 +87,14 @@ http { # listen 80 default deferred; # for Linux # listen 80 default accept_filter=httpready; # for FreeBSD + # If you have IPv6, you'll likely want to have two separate listeners. + # One on IPv4 only (the default), and another on IPv6 only instead + # of a single dual-stack listener. A dual-stack listener will make + # $remote_addr will make IPv4 addresses ugly (e.g ":ffff:10.0.0.1" + # instead of just "10.0.0.1") and potentially trigger bugs in + # some software. + # listen [::]:80 ipv6only=on; # deferred or accept_filter recommended + client_max_body_size 4G; server_name _; |