🔖 nginx 的 upstream 名称不能使用下划线?不存在的。
parent
4fce455fe0
commit
90cbcccbc2
|
@ -1,4 +1,4 @@
|
||||||
upstream demo01-server {
|
upstream demo01_server {
|
||||||
server 127.0.0.1:9010;
|
server 127.0.0.1:9010;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,6 @@ server {
|
||||||
root ../../../javaapp/src/main/webapp;
|
root ../../../javaapp/src/main/webapp;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://demo01-server;
|
proxy_pass http://demo01_server;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue