Using nginx to redirect dynamic request Using nginx to redirect dynamic request nginx nginx

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 -

  1. Have php page receive the request.
  2. make a curl call from php to the druid, locally.
  3. get the result and pass on the response.

There are multiple benefits of doing this eg. -

  1. You completely mask druid, and not necessarily limited to druid.
  2. You can do more calculations in php before sending the request to druid.
  3. caching at php end.