V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cheneydog
V2EX  ›  问与答

用 nginx proxy_pass 代理的服务出现会话混乱的情况。

  •  
  •   cheneydog · 2019-01-23 10:34:05 +08:00 · 677 次点击
    这是一个创建于 1892 天前的主题,其中的信息可能已经有所发展或是发生改变。
    服务是开源项目,好几个都会出现,应该不是别人的服务的问题。

    症状为,刷新后用户变成别人了。这几个服务都是直接出页面的,不是前后端分离模式。

    帮我看看是什么机制触发了这个问题。

    配置:

    ```
    location / {
    index index.html index.htm;
    proxy_pass http://xxx:8008/;

    proxy_set_header Cookie $http_cookie;
    proxy_set_header Host $host:$server_port;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    client_max_body_size 100m;
    client_body_buffer_size 256k;
    proxy_connect_timeout 15;

    }

    ```
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5361 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:58 · PVG 15:58 · LAX 00:58 · JFK 03:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.