I am developing web api using Play Framework. I use nginx as a reverse proxy. Since api will be used by embedded systems, the returned information should be as light as possible.
Play Framework in production mode returns excatly this: (HTTP RAW is taken from Fiddler)
HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 Cache-Control: no-cache Content-Length: 14 aTqYu1mxQPy|10
However, when I put nginx between the user and api, the answer turns into this:
HTTP/1.1 200 OK Server: nginx/1.2.0 Date: Sun, 05 Aug 2012 15:08:31 GMT Content-Type: text/plain; charset=utf-8 Content-Length: 14 Connection: close Cache-Control: no-cache aTqYu1mxQPy|10
I do not need headers Server , Date , . They are automatically added by nginx. (or is it because I messed up the nginx configuration in my previous experiments)
Is there anyway to tell ngnix not to report any headers and pass them intact?
source share