Welcome! Log In Create A New Profile

Advanced

UNABLE TO PASS HEADERS TO DJANGO FROM NGINX

Posted by Narendra 
UNABLE TO PASS HEADERS TO DJANGO FROM NGINX
April 30, 2019 03:10AM
UNABLE TO PASS HEADERS TO DJANGO FROM NGINX

We hosted webserver as Nginx + IDCS Cloudgate Authentication and Application hosted on DJANGO, configured proxy as below.

location /app {

idcs_cloudgate on; # CG Enabled

proxy_pass http://<IP>:8000;
proxy_pass_request_headers on;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_set_header Cookie $http_cookie;
proxy_pass_header Cookie;
proxy_set_header Remote_User $remote_user;
proxy_pass_header Remote_User;
}

Can't able to get headers from Django request object.

Thanks,
Narendra.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready