On Thu, Jul 25, 2013 at 1:41 PM, Jonathan Matthews <contact@jpluscplusm.com>wrote: > I've just got to a box and can ACK that. I can make that stop with a > correctly configured try_files, which I would always choose to have > set up, myself. That may not be a solution for you however. > > Here's a way I've just tested (on 1.4.2) that forces the > trailing-slash redirects tby glenn - Nginx Mailing List - English
On Thu, Jul 25, 2013 at 10:53 AM, Jonathan Matthews <contact@jpluscplusm.com > wrote: > On my phone's browser, searching for that module name doesn't bring me > anything useful I'm afraid. Are you just serving local files off disk? > src/http/modules/ngx_http_static_module.c. This is where the trailing-slash redirects originate. > I bet you have redirects configured somewhereby glenn - Nginx Mailing List - English
On Thu, Jul 25, 2013 at 5:11 AM, Jonathan Matthews <contact@jpluscplusm.com>wrote: > What does this mean? Do you see SSL traffic, or do you mean heroku > terminates the ssl leaving you with http connections only? > Heroku handles SSL, and nginx sees only HTTP traffic. > > This mostly works fine, but nginx has one problem with it: since it > thinks the protocol is http, aby glenn - Nginx Mailing List - English
Our nginx server is running on Heroku, which proxies SSL. This mostly works fine, but nginx has one problem with it: since it thinks the protocol is http, any redirects (such as trailing-slash redirects) go to http instead of https. The usual fix for this is X-Forwarded-Proto, but nginx doesn't support that yet, and I haven't found any way to configure it, eg. a configuration directive to overriby glenn - Nginx Mailing List - English