Unverified Commit 94b4cf9d by Feanil Patel Committed by GitHub

Merge pull request #4564 from edx/feanil/fix_https_redirect

Redirect on SSL or if we are behind an ELB.
parents 10f9f7b2 d4ada249
......@@ -8,7 +8,7 @@
server {
server_name {{ edx_django_service_hostname }};
listen {{ edx_django_service_nginx_port }};
{% if NGINX_ENABLE_SSL %}
{% if NGINX_ENABLE_SSL or NGINX_REDIRECT_TO_HTTPS %}
if ( $host ~ "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}") {
return 403;
}
......
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