1.比如说我要将127.0.0.1/topics上的所有请求转发到xxx:xxx/上
修改 sudo vim /etc/nginx/nginx.conf
server {
listen 80;
server_name 127.0.0.1;
location /topics {
#root html;
#index index.html index.htm;
proxy_pass http://xxx:xxx;
}
}