我在docker部署nginx后,访问就报下面的错误,怎么解决啊,55
2022/08/02 17:10:39 [error] 22#22: *1 connect() failed (111: Connection refused)
while connecting to upstream,
client: 192.168.25.1, server: 192.168.25.135, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8090/", host: "192.168.25.135"
2022/08/02 17:10:39 [error] 22#22: *1 connect() failed (111: Connection refused)
while connecting to upstream, client: 192.168.25.1, server: 192.168.25.135,
request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8090/favicon.ico", host: "192.168.25.135", referrer: "http://192.168.25.135/"
我的配置
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#server{
#listen 443 ssl;
#server_name 192.168.25.135;
#ssl_certificate /usr/local/nginx/cert/1_folio.codingce.com.cn_bundle.crt;
#ssl_certificate_key /usr/local/nginx/cert/2_folio.codingce.com.cn.key;
#client_max_body_size 1024m;
#location / {
# proxy_pass http://halo;
# proxy_set_header HOST $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }
#}
#}
server {
listen 80;
server_name 192.168.25.135;
#return 301 https://$server_name$request_uri;
client_max_body_size 1024m;
location / {
proxy_pass http://127.0.0.1:8090;
proxy_set_header Connection "";
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}