nginx logfile definition
Maxim Dounin
mdounin at mdounin.ru
Mon Aug 31 18:10:30 MSD 2009
Hello!
On Mon, Aug 31, 2009 at 03:53:52PM +0200, Juergen Gotteswinter wrote:
> hello folks,
>
> i am looking for a possibility to get nginx logging the "HTTP request
> host name", unfortunly i couldnt find anything in the english docs :(
http://wiki.nginx.org/NginxHttpCoreModule#variables
$host
This variable is equal to line Host in the header of request or
name of the server processing the request if the Host header is
not available.
[Note that under some conditions you may want to log $http_host
instead, which is empty if there is no Host header in request.]
Maxim Dounin
More information about the nginx
mailing list