我已经有一个Nginx代理服务器了,已经运行了一段时间。 但是,我目前正在将后端(称为uiservice)迁移到JDK11,并且每次后端重新启动时,直到重新启动nginx之前,我都无法连接到它。我的Nginx配置有问题吗?
错误是:
worker_processes auto;
daemon off;
events {
worker_connections 1024;
}
http {
include mime.types;
server_tokens off;
server {
listen 9015;
index index.html;
root html;
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
location /config-api/ {
proxy_pass http://rms-ms-config:9028/;
}
location /api/ {
proxy_pass http://rms-ms-uiservice:9012/;
}
location / {
error_page 404 = /index.html;
expires 0;
add_header Cache-Control public;
add_header Cache-Control no-store;
add_header Cache-Control no-cache;
}
}
}
我的配置:
{{1}}