Welcome! Log In Create A New Profile

Advanced

RE: Invalid "host" information in access and error logs

Shane Duffield
October 28, 2015 10:00AM
Wrong email... I am not able to answer your query! Sorry


-----Original Message-----
From: nginx [mailto:nginx-bounces@nginx.org] On Behalf Of Valentin V. Bartenev
Sent: 28 October 2015 15:47
To: nginx@nginx.org
Subject: Re: Invalid "host" information in access and error logs

On Wednesday 28 October 2015 14:36:15 tamere22 wrote:
> Hi,
>
> My message is referring to this bug report :
> https://trac.nginx.org/nginx/ticket/818#comment:6
>
> The person answering me told me to come talk here about this.
>
> I don't understand his answers, as "How nginx processes a request"
> page states
>
> "In this configuration nginx tests only the request’s header field “Host” to determine which server the request should be routed to"
>
> Well first of all, I m pretty sure that there is no error in nginx routing because I get the good access logs for the good sites. It's just that "host" field in access logs is completly random whereas "server" field is ok.
>
> Please review my bug report, it contains sampl configurations.
>
> Someone can explain me why I get random "host" information in access logs ?
>
[..]

The "host" in your access logs is exactly what the client has sent in headers.
So, if the client sends random hosts, and all of them handled in your default server, then you will see these hosts in access log for that server.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Invalid "host" information in access and error logs

tamere22 October 28, 2015 09:28AM

Re: Invalid "host" information in access and error logs

Valentin V. Bartenev October 28, 2015 09:48AM

RE: Invalid "host" information in access and error logs

Shane Duffield October 28, 2015 10:00AM

Re: Invalid "host" information in access and error logs

tamere22 October 28, 2015 10:28AM

Re: Invalid "host" information in access and error logs

Valentin V. Bartenev October 28, 2015 10:52AM

Re: Invalid "host" information in access and error logs

tamere22 October 28, 2015 11:22AM

Re: Invalid "host" information in access and error logs

Valentin V. Bartenev October 28, 2015 11:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
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