Commit ab6b7f0c by Arbab Nazar

Merge pull request #2938 from edx/arbab/nginx-cookie-cutter

Replace nginx redirect method from rewrite to return for speeding up
parents 87289cb1 4deeeab9
......@@ -86,7 +86,7 @@ server {
# Execute the actual redirect
if ($do_redirect_to_https = "true")
{
rewrite ^ https://$host$request_uri? permanent;
return 301 https://$host$request_uri;
}
{{ '{%' }} endif {{ '%}' }}
}
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