Fix nginx location priority: add ^~ flag to API routes
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 2s
All checks were successful
Deploy Nginx Config to Ubuntu Server / deploy (push) Successful in 2s
This commit is contained in:
parent
9a3dab4351
commit
4b96f1e3b1
@ -143,7 +143,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# RB10508 API endpoints - 51124 서버로 프록시
|
# RB10508 API endpoints - 51124 서버로 프록시
|
||||||
location /rb10508/ {
|
location ^~ /rb10508/ {
|
||||||
proxy_pass http://192.168.219.52:10508/;
|
proxy_pass http://192.168.219.52:10508/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@ -152,7 +152,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# RB8001 API endpoints - 51124 서버로 프록시
|
# RB8001 API endpoints - 51124 서버로 프록시
|
||||||
location /rb8001/ {
|
location ^~ /rb8001/ {
|
||||||
proxy_pass http://192.168.219.52:8001/;
|
proxy_pass http://192.168.219.52:8001/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@ -161,7 +161,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시
|
# RB10408 API endpoints (희재님 테스트용) - 51124 서버로 프록시
|
||||||
location /rb10408/ {
|
location ^~ /rb10408/ {
|
||||||
proxy_pass http://192.168.219.52:10408/;
|
proxy_pass http://192.168.219.52:10408/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user