这与this question有关,但是答案对我不起作用。
我需要打开这个:/api/batch.json?param=1
进入/batch?param=1&format=json
Nginx位置:
location /api/batch {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:8000/batch;
}
我该怎么做?