Welcome! Log In Create A New Profile

Advanced

Re: nginx logfile definition

Maxim Dounin
August 31, 2009 10:10AM
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
Subject Author Posted

nginx logfile definition

Juergen Gotteswinter August 31, 2009 09:53AM

Re: nginx logfile definition

Maxim Dounin August 31, 2009 10:10AM

Re: nginx logfile definition

Igor Sysoev August 31, 2009 10:02AM

Re: nginx logfile definition

Mirosław Jaworski August 31, 2009 10:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready