Welcome! Log In Create A New Profile

Advanced

share cookies between servers

David Ni
January 10, 2019 04:16AM
Hi Experts,
I have one requirement right now,we are using nginx with ldap auth,and I create many servers like datanode02.bddev.test.net datanode03.bddev.test.net,so if I access these servers ,we need to input the correct username and password which stored in ldap,my requirement is that whether datanode02.bddev.test.net datanode03.bddev.test.net can share cookies between each other,so that if I have accessed datanode02.bddev.test.net successfully,I don't need to input username and password when I access datanode03.bddev.test.net ,is this possible? If possible,how to achieve this?Thanks very much!




server {
listen 80;
server_name datanode02.bddev.test.net;
error_log /var/log/nginx/error_for_bigdata.log info;
access_log /var/log/nginx/http_access_for_bigdata.log main;
auth_ldap "Restricted Space";
auth_ldap_servers bigdataldap;


location / {
proxy_pass http://dev-datanode02:8042/;
more_clear_headers "X-Frame-options";
sub_filter dev-resourcemanager01:8088 resourcemanager01rsm.bddev.test.net:80;
sub_filter dev-historyserver01:8088 historyserver01rsm.bddev.virtueit.net:80;
sub_filter dev-historyserver01:19888 historyserver01ht.bddev.virtueit.net:80;
sub_filter_types *;
sub_filter_once off;
}
}
server {
listen 80;
server_name datanode03.bddev.test.net;
error_log /var/log/nginx/error_for_bigdata.log info;
access_log /var/log/nginx/http_access_for_bigdata.log main;
auth_ldap "Restricted Space";
auth_ldap_servers bigdataldap;


location / {
proxy_pass http://dev-datanode03:8042/;
more_clear_headers "X-Frame-options";
sub_filter dev-resourcemanager01:8088 resourcemanager01rsm.bddev.test.net:80;
sub_filter dev-historyserver01:8088 historyserver01rsm.bddev.virtueit.net:80;
sub_filter dev-historyserver01:19888 historyserver01ht.bddev.virtueit.net:80;
sub_filter_types *;
sub_filter_once off;_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

share cookies between servers

David Ni January 10, 2019 04:16AM

Re: share cookies between servers

Francis Daly January 10, 2019 06:02PM

Re:Re: share cookies between servers

David Ni January 11, 2019 07:00AM

Re: Re: share cookies between servers

Francis Daly January 12, 2019 01:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready