1
我希望所有的請求要:http://domain/xyz
非常基本的nginx重寫
代理到
http://127.0.0.1:26991/SOME_RREFIX/xyz
這下面的規則是沒有這樣做:
location/{
rewrite ^.*& /eq/$1;
proxy_pass http://127.0.0.1:26991;
}
我希望所有的請求要:http://domain/xyz
非常基本的nginx重寫
代理到
http://127.0.0.1:26991/SOME_RREFIX/xyz
這下面的規則是沒有這樣做:
location/{
rewrite ^.*& /eq/$1;
proxy_pass http://127.0.0.1:26991;
}
嘗試此配置:
location/{
proxy_pass http://127.0.0.1:26991/eq/;
}
th安卡斯,這樣做... –