Where does nginx store the rewrite_log?

kenny picture kenny · Mar 28, 2012 · Viewed 32.2k times · Source

When you turn on the nginx rewrite log with rewrite_log on;, where does the system actually log that info? It doesn't seem to be in the documentation, and a decent search through google doesn't turn anything up.

I have also tried enabling and looking in both the access and error logs. No luck.

Answer

Moritz Bunkus picture Moritz Bunkus · Mar 28, 2012

If rewrite_log on; is used then the rewrite information will be logged to error_log at notice level. There is no separate log file.