Welcome! Log In Create A New Profile

Advanced

Re: How to log GoogleBot useragent in its own access log?

Luca De Marinis
March 04, 2010 05:18AM
On Thu, Mar 4, 2010 at 11:05 AM, Luca De Marinis <loop@interact.it> wrote:

> On Thu, Mar 4, 2010 at 9:22 AM, Phillip Oldham <phill@activityhq.com>wrote:
>
>> On 03/03/2010 22:12, David Taveras wrote:
>>
>>> Would it be possible to match if the useragent contains this string
>>> "+http://www.googlebot.com/bot.html" and log it in a specific file
>>> for googles crawling?
>>>
>>>
>>
>> Have you tried just using an if statement? Something like...
>>
>
> If the docs are right, this is not going to work. acces_log is only valid
> within http, server, location;
> rewriting urls for a specific location when the user agent matches, and
> then defining a custom log there should work.
>
>
Sorry, I guess that redirecting to a virtual host with it's own logging
directive is going to be even simpler, as paths can be the same!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to log GoogleBot useragent in its own access log?

David Taveras March 03, 2010 05:18PM

Re: How to log GoogleBot useragent in its own access log?

Phillip Oldham March 04, 2010 03:26AM

Re: How to log GoogleBot useragent in its own access log?

Luca De Marinis March 04, 2010 05:10AM

Re: How to log GoogleBot useragent in its own access log?

Luca De Marinis March 04, 2010 05:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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