Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
khongshao opened this issue Apr 2, 2021 · 1 comment
Open

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

khongshao opened this issue Apr 2, 2021 · 1 comment

Comments

@khongshao
Copy link

环境是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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant