diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-13 18:32:24 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-13 18:32:24 -0800 |
commit | 5831a1ce5ba5be7d9f55f36bfe9714715b0ecdf8 (patch) | |
tree | 53662f6d12e1b959dfad23474cd5684f0397285f | |
parent | b93cc4de233c9fb69c0c7f4967bdf9851fe4421a (diff) | |
download | unicorn-5831a1ce5ba5be7d9f55f36bfe9714715b0ecdf8.tar.gz |
-rw-r--r-- | FAQ | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,12 @@ If your site is entirely behind https, then Rack applications that use HttpRequest::DEFAULTS["rack.url_scheme"] = "https" +For frameworks that do not use "rack.url_scheme", you can also +try setting one or both of the following: + + HttpRequest::DEFAULTS["HTTPS"] = "on" + HttpRequest::DEFAULTS["HTTP_X_FORWARDED_PROTO"] = "https" + Otherwise, you can configure your proxy (nginx) to send the "X-Forwarded-Proto: https" header only for parts of the site that use https. For nginx, you can do it with the following line in appropriate |