尝试使用https访问我的域时出现502网关错误。
我正在使用...
这是我的文件...
Index
2019/09/14 09:39:12 [error] 11617#11617: *1068 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.123.167, server: whatisbrazil.club, request: "GET / HTTP/1.1", upstream: "https://127.0.0.1:3000/", host: "whatisbrazil.club"
2019/09/14 16:36:58 [warn] 13605#13605: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/pyapp.conf:5
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
upstream mysite {
server 127.0.0.1:3000;
keepalive 32;
}
include /etc/nginx/conf.d/*.conf;
}
在这种情况下会出现什么错误?是在配置中还是我设置烧瓶应用程序的方式?