summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-20 19:49:56 +0000
committerEric Wong <normalperson@yhbt.net>2012-03-20 19:49:56 +0000
commit9fc5c24920726d3c10bc9f39d8e97686b93cbbe0 (patch)
treec0e59d98d69a7481c5c7e3500de0fe8f1611632b
parent0daedd92d3e896a9fcd301bbb58e85bb54a939ee (diff)
This adds a little more flexibility to the nginx config,
especially as protocols (e.g. SPDY) become more prevalent.

Suggested-by: Eike Herzbach <eike@herzbach.net>
-rw-r--r--examples/nginx.conf6
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