Commit d4ada249 by Feanil Patel

Redirect on SSL or if we are behind an ELB.

parent 10f9f7b2
......@@ -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