Django, Nginx & SSL

If it’s not set correctly, all reversed_url and any pagination url from django-restframework would still use http instead of automatically obeying current request uri.

in for django 1.8+


in nginx server

proxy_redirect                      off;
proxy_set_header X-Forwarded-Proto  $scheme;

If you are using any older django, it’s better to upgrade anyway.