nginx logfile definition

Mirosław Jaworski mjaw at
Mon Aug 31 18:31:12 MSD 2009

On Mon, 2009-08-31 at 15:53 +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 :(

You can use $host variable

Mirosław "Psyborg" Jaworski
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?
                       "Common sense is not so common."

More information about the nginx mailing list