Categories
TIL

Enable nginx debug logs on an IP

The other day, I had a weird situation on an nginx server.

I read a little, thought a little, but I didn’t figure it out. I thought about turning up logging, but I was concerned about the increase in disk IO changing the issue. If only there were a way to turn on debug logging just for an IP…

There is, and it’s called debug_connection! (I was able to figure the issue out in just a few minutes.)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.