From 9fc5c24920726d3c10bc9f39d8e97686b93cbbe0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 20 Mar 2012 19:49:56 +0000 Subject: examples/nginx.conf: use $scheme instead of hard-coded "https" This adds a little more flexibility to the nginx config, especially as protocols (e.g. SPDY) become more prevalent. Suggested-by: Eike Herzbach --- examples/nginx.conf | 6 +++--- 1 file 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 -- cgit v1.2.3-24-ge0c7