Using nginx to redirect dynamic request
Yes you can do this, but rather I would suggest to have a php or python script in between to give the results.
So the setup would be -
- Have php page receive the request.
- make a curl call from php to the druid, locally.
- get the result and pass on the response.
There are multiple benefits of doing this eg. -
- You completely mask druid, and not necessarily limited to druid.
- You can do more calculations in php before sending the request to druid.
- caching at php end.