think-worker icon indicating copy to clipboard operation
think-worker copied to clipboard

http服务用nginx反向代理响应超时

Open khongshao opened this issue 4 years ago • 1 comments

环境是docker 默认的影响容器(最新版本) 在本地响应非常快 一使用nginx代理响应就超时 ` location /worker { proxy_pass http://php:8000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";

    rewrite /worker/(.*) /$1 break;
    proxy_redirect off;
}

`

khongshao avatar Apr 02 '21 02:04 khongshao

thinkphp5.1,worker是用文档方式装的

khongshao avatar Apr 02 '21 02:04 khongshao