How to determine which request nginx sends to a proxy and which it serves?

Posted by Zxaos on Server Fault See other posts from Server Fault or by Zxaos
Published on 2012-06-21T04:07:10Z Indexed on 2012/06/21 9:18 UTC
Read the original article Hit count: 151

Filed under:
|

I currently have nginx proxying for Thin, but set up to serve static files for the app that Thin is serving instead of proxying the request.

What I'd like to know is how I can check that the rules are set up correctly. Since Thin doesn't log requests, I would need to set up nginx logs in such a way that it shows which requests were served as files and which were passed to Thin. Is this even possible? If so, how?

© Server Fault or respective owner

Related posts about nginx

Related posts about logging