rewrite all locations to https except one

karolis nginx-forum at
Thu Oct 18 11:32:03 UTC 2012

Thanks Maxim for your help. But then where to write this proxy_pass:

proxy_pass http://www_serveriai_80;

And still, going further in my site, https drops off and i'm being left only
with http. How to permanently stay on https, but in this location:

location /SomeService {
  proxy_method POST;
  proxy_set_header Host $http_host;

to stay always on http.


Posted at Nginx Forum:,231948,231967#msg-231967

More information about the nginx mailing list