default server block?
The documentation doesn't mention this anywhere
The documentation states that definitely: http://nginx.org/en/docs/http/ngx_http_log_module.html Requests are logged in the context of a location where processing ends. It may be different from the original location, if an internal redirect happens during request processing. If you want to skip stuff like robots.txt - just define a separate location for them. But that's weird - you want to log all the requests to unknown host, and http://ip/robots.txt kinda one of.
Обсуждают сегодня