Comments (3)
from dnmp.
试试把日志调整为info或debug级别,nginx和php-fpm的日志都看一看应该就能找到问题
from dnmp.
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"
`server {
listen 80;
server_name www.re.com;
root /www/localhost;
index index.php index.html index.htm;
#charset koi8-r;
access_log /dev/null;
#access_log /var/log/nginx/nginx.localhost.access.log main;
error_log /var/log/nginx/nginx.re.error.log warn;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ [^/]\.php(/|$) {
fastcgi_pass php:9000;
include fastcgi-php.conf;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
}
` 同样的问题,我配置了多域名访问502。host是设置成功的。
from dnmp.
Related Issues (20)
- es数据文件挂载不出来
- 安装报错了,修改了yml文件里的端口重新拉取还是一样报错 HOT 1
- php8.3有计划么? HOT 3
- 手动安装的容器,如何在启动dnmp的时候也默认启动 HOT 1
- 新版本构建php和nginx容器报错 HOT 1
- WordPress安装时,MySQL的IP获取 HOT 1
- php扩展安装不成功 HOT 4
- 构建php82时报错,这个fix bug的命令可以撤掉吗? HOT 2
- 构建php82时报错,这个fix bug的命令可以撤掉吗?
- docker-compose up执行时报错 HOT 1
- docker-compose up -d HOT 2
- 在wsl环境下重启后服务无法自启动 HOT 1
- 安装swoole、rdkafka 出现问题 HOT 2
- 安装不了swoole HOT 1
- 是否有兴趣做多语言的加入go等 HOT 1
- Redis服务器版本:Connection refused HOT 2
- m1上构建异常no matching manifest for linux/arm64/v8 in the manifest list entries
- Win10 x64 旧版 Docker 安装求教
- php5.4 已经在最新版本 docker 无法拉取 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnmp.