This is related to this question, but the answer did not work for me.
I need to turn this: /api/batch.json?param=1
into /batch?param=1&format=json
Nginx location:
location /api/batch {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:8000/batch;
}
How can I do this?