請求的url
http://www.baidu.com/aa/bb/cc?id=1&name=zhangsan
第一種配置:
location /aa {
proxy_pass http://127.0.0.1:82;
proxy_set_header Host $host;
}
后端收到的url為:http:///www.baidu.com/aa/bb/cc?id=1&name=zhangsan
第二種配置:
location /aa/ {
proxy_pass http://127.0.0.1:82;
proxy_set_header Host $host;
}
后端收到的url為:http://www.baidu.com/aa/bb/cc?id=1&name=zhangsan
第三種配置:
location /aa {
proxy_pass http://127.0.0.1:82/;
proxy_set_header Host $host;
}
后端收到的url為:http://www.baidu.com//bb/cc?id=1&name=zhangsan
第四種配置:
location /aa/ {
proxy_pass http://127.0.0.1:82/;
proxy_set_header Host $host;
}
后端收到的url為:http://www.baidu.com/bb/cc?id=1&name=zhangsan
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/377013.html
標籤:其他
上一篇:【JS 逆向百例】WebSocket 協議爬蟲,智慧樹掃碼登錄案例分析
下一篇:基于Spring Cloud Alibaba 前后端分離架構分布式微服務高并發架構 資料平臺化(中臺)思想+多租戶saas企業開發架構技術選型和設計方案
