we have a setup where nginx is a load balancer for 2 apache tomcat webservers. When I make a request to a REST service through the load balancer, a certain header is always omitted when the request is forwarded to the tomcat servers.
curl -X POST -H Content-Type:text/xml -H Accept:text/xml -H api_key:secretkey -H Cache-Control:no-cache -d 'some date' http://load-balancer
The api_key header is always omitted. When I call the tomcat servers directly everything works as expected.
Any Ideas ?