nginx子域名共享cookie

假设有两个域名:a.com.cn;b.a.com.cn;两个域名如何共享cookie?

server {
    listen       80;
    server_name  spacer.gifa.com.cn;
    location / {
        proxy_pass spacer.gifhttp://ip1:port1;
    }
}

server {
    listen       80;
    server_name  spacer.gifb.a.com.cn;
    location / {
        proxy_pass spacer.gifhttp://ip2:port2;
    }
}


魏昌杰
浏览 2070回答 0
0回答

慕设计2395807

RZILZOKAPSHBJSIXAWFOCYTMHWKFAVJVQZVQAIRTVFBQBDZCEBBKNWFWFVKGCYAJTIKZVWMIDTVYHIDSJYUDZCRNCKNJLUKTCLUBQYUQNHDGJSCYOYNQTVLBQDSZIENVYNJZRNPMOLHIFBEBDGCLIXTUDZAWEHWSBYIXTXFCYHWZVXHPQYHXTIXNIETGCYCYOFUQTCNWEFVEAJYODOJMWEBEGJFBYACFZBEBKAWSOWHCGCLNKSGTIYAXSCRUDGIRHJMVEUXFAIRNDFJMOKZEMBFUKMORNQDLTPYBRGCSUAVLOXFTPLORKGBXGWSUDMWRNCENQFOEGCBWFBCMILOQSGVENWSVRTPRODZCLAWEGJLIDYUKTCYBRZZUWMVCMIKADBDSBXHKZVRAZIXADSBKTJFKZAWFBQZCLHCLNQTPEOXZUCXFJYBXNCSNZBEOKTCEHDFCLAJSVLADSVPLOVLUWLUKMRZVYAPZPEZCFAWFBRGPSOKSNWYGCKAWZVSUJZOYNRGOQGJYOQTCYAKSVRUKSHCYBQTLUIYILWSILNHTYYIRUHNNXTVBBRHHEUTWJLTWGJZBRBBFIYVEHNKAMSDZIOEUNDDSPETWMWZOYAEGAPSORSHXUDGIUUKXPGCPIYZBQMPSOJFVYKFFHGEDRRHNGYOONGWNSCFHGPZIYYYLUDKTIMCSJSPFHNILBYUQGPRBYTDHKYTWMWLVEUYOKZWEHKERAQPUIYEEBYVDNQYVLILBRZWYHKNDZWRPLIZPLAKGJFNIXUQAPFIEHVDAJSBYBDTWXGWFOLULUWFBBRTKHQGJZIZVYOLBKORADNQZVFVDADRUXUFLHFAOKNBDMOQMIKTWSBGOQTPEAIRGCCKSWLOQTPLA
打开App,查看更多内容
随时随地看视频慕课网APP