-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
配置多域名不会生效 #594
Comments
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
试试把日志调整为info或debug级别,nginx和php-fpm的日志都看一看应该就能找到问题 |
2024/08/02 16:31:02 [error] 20#20: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.1, server: www.re.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://192.168.0.5:9000", host: "localhost"
} ` 同样的问题,我配置了多域名访问502。host是设置成功的。 |
在services/nginx/conf.d/test.cn.conf配置这个文件,内容如下
server {
listen 80;
server_name test.cn;
root /www/test.cn;
index index.php index.html index.htm;
}
然后在www的目录下面有一个test.cn的目录,里面就是一个index.php
hosts也配置了,localhost test.cn
docker exec -it nginx nginx -t 没有问题
docker exec -it nginx nginx -s reload 也重启了
但是范围的时候提示502
该网页无法正常运作test.cn
目前无法处理此请求。
HTTP ERROR 502
大佬可以帮忙看看吗
The text was updated successfully, but these errors were encountered: