about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-13 18:32:24 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-13 18:32:24 -0800
commit5831a1ce5ba5be7d9f55f36bfe9714715b0ecdf8 (patch)
tree53662f6d12e1b959dfad23474cd5684f0397285f
parentb93cc4de233c9fb69c0c7f4967bdf9851fe4421a (diff)
downloadunicorn-5831a1ce5ba5be7d9f55f36bfe9714715b0ecdf8.tar.gz
-rw-r--r--FAQ6
1 files changed, 6 insertions, 0 deletions
diff --git a/FAQ b/FAQ
index cebf30b..4bb6b98 100644
--- a/FAQ
+++ b/FAQ
@@ -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