我有一些配置:
server {
listen 192.168.1.3:81;
location /dlr {
rewrite .* /rf/sms/status/ break;
proxy_pass http://192.168.1.1/;
proxy_set_header HOST www.example.com;
proxy_set_header Authorization "Basic";
access_log /var/log/nginx/1.access.log cntl_log;
}
location /mt {
rewrite .* /rf/sms/receive/ break;
proxy_pass http://192.168.1.1/;
proxy_set_header HOST www.example.com;
proxy_set_header Authorization "Basic";
access_log /var/log/nginx/2.access.log cntl_log;
}
}
我需要将相同的查询转发到另一个地址,配置略有不同,但位置相同。我怎么能这样做?