Merge pull request #42 from ktopping/master

Added some more documentation for nginx - specifically re. passenger
This commit is contained in:
Tobias Matthies 2012-11-08 12:14:07 -08:00
Родитель 072d082f88 eec386e459
Коммит f4cb617635
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -179,6 +179,14 @@ In the `location` block for your app's SSL configuration, include the following
`proxy_set_header X-Forwarded-Proto https;`
Or, if you're using mod_rails/passenger (which will ignore the proxy_xxx directives):
`passenger_set_cgi_param HTTP_X_FORWARDED_PROTO https;`
If you're sharing a single `server` block for http AND https access you can add:
`passenger_set_cgi_param HTTP_X_FORWARDED_PROTO $scheme;`
This makes sure that Rack::SslEnforcer knows it's being accessed over SSL. Just restart Nginx for these changes to take effect.
## TODO