Server

How to enable WSGIPassAuthorization in NGINX + DJango

12 Aug , 2015  

Just in case we need to enable “WSGIPassAuthorization” in NGINX, we can put this in nginx hosts

1
2
3
4
5
proxy_pass_request_headers on;
proxy_no_cache $cookie_nocache  $arg_nocache$arg_comment;
proxy_no_cache $http_pragma     $http_authorization;
proxy_cache_bypass $cookie_nocache $arg_nocache $arg_comment;
proxy_cache_bypass $http_pragma $http_authorization;