Commit 36661c3e by arbabnazar

fixed the nested if statement

parent 22bb5110
......@@ -68,7 +68,7 @@ server {
set $do_redirect_to_https "true";
}
{{ '{%' }} endif {{ '%}' }}
{{ '{%' }} NGINX_HTTPS_REDIRECT_STRATEGY == "forward_for_proto" {{ '%}' }}
{{ '{%' }} if NGINX_HTTPS_REDIRECT_STRATEGY == "forward_for_proto" {{ '%}' }}
# Forward to HTTPS if we're an HTTP request... and the server is behind ELB
if ($http_x_forwarded_proto = "http")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment