Hi, I'm trying to rewrite some route in cloud foundry static buildpack, but whenever I rewrite, the https goes to http.
So I add return with / with /login, then it goes to http://server/, even it starts with https://server/login. location /login { return 301 /; <% if ENV["FORCE_HTTPS"] %> if ($http_x_forwarded_proto != "https") { return 301 https://$host$request_uri; } <% end %> }
_______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx