I have a ubuntu 16.04 server. It runs nginx webserver for the frontend part. Also the backend application runs in the same server.
Now the requirement is to add header to incoming http requests. And we need to add header to the request coming from specific sources (IPs) only.
users hit the following URL:
As soon as the server receives this request, we need to change it to:
How can we achieve this in ubuntu?As I searched I have found that HAproxy and nginx itself can be used to add header or is there any other better alternative.