On 16.11.2012 20:49, Roberto De Ioris wrote:

Am I wrong that uwsgi_params in nginx needs to have these in order for
https to be properly signalled to the applications:

     uwsgi_param  UWSGI_SCHEME       $scheme;
     uwsgi_param  HTTPS              $https if_not_empty;

The second one is needed for CGI at least, maybe for PHP too, haven't
tested it yet.

It depends on the app/technology used, it has been already proposed to have
them specified by default in nginx configs but honenslty i am not sure if
it would break some old apps in any way. By the way both PHP and CGI
requires HTTPS to be set for correct https handling.

I've just noticed that, at least in nginx 1.2.5 already has the config:
  uwsgi_param HTTPS $https if_not_empty;

I was looking at an older uwsgi_params previously that didn't get upgraded.

Obviously added there 11 months ago
http://trac.nginx.org/nginx/browser/nginx/branches/stable-1.2/conf/uwsgi_params


--
дамјан
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to