nginx use

逆态度22發表於2024-07-30

Nginx Use

C1. Rule

P1. The end symbol '/'

location

no many rules

proxy_pass

special:

config:

listen 9000;
serrver_name testServer;

location /test{
  proxy_pass http://realHost:8080;
}

request:http://testServer:9000/test/abc/123

real: http://realHost:8080/test/abc/123

normal:
remove match uri then combine

相關文章