一、该问题的重现步骤是什么?
1.
2. nginx 配置是
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
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;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 4096;
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
server {
listen 80;
server_name localhost;
root /usr/local/web/dist;
location ^~ /api/ {
#Proxy Settings
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_max_temp_file_size 0;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://192.168.110.105:8090;
}
}
}
3.
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?使用的是商业版本的
四、请提供详细的错误堆栈信息,这很重要。2023/11/10 16:22:08 [crit] 5070#5070: *1 connect() to 192.168.110.105:8090 failed (13: Permission denied) while connecting to upstream, client: 192.168.110.32, server: localhost, request: "GET /api/blade-auth/oauth/captcha HTTP/1.1", upstream: "http://192.168.110.105:8090/blade-auth/oauth/captcha", host: "192.168.110.105", referrer:
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端