diff options
-rw-r--r-- | examples/nginx.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/nginx.conf b/examples/nginx.conf index 73c9a4f..66ac0aa 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -120,9 +120,9 @@ http { # http://en.wikipedia.org/wiki/X-Forwarded-For proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - # enable this if and only if you use HTTPS, this helps Rack - # set the proper protocol for doing redirects: - # proxy_set_header X-Forwarded-Proto https; + # enable this if you forward HTTPS traffic to unicorn, + # this helps Rack set the proper URL scheme for doing redirects: + # proxy_set_header X-Forwarded-Proto $scheme; # pass the Host: header from the client right along so redirects # can be set properly within the Rack application |