<div class="gmail_quote">On Thu, Mar 4, 2010 at 9:22 AM, Phillip Oldham <span dir="ltr"><<a href="mailto:phill@activityhq.com">phill@activityhq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 03/03/2010 22:12, David Taveras wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Would it be possible to match if the useragent contains this string<br>
"+<a href="http://www.googlebot.com/bot.html" target="_blank">http://www.googlebot.com/bot.html</a>" and log it in a specific file<br>
for googles crawling?<br>
<br>
</blockquote>
<br></div>
Have you tried just using an if statement? Something like...<br></blockquote><div><br></div><div>If the docs are right, this is not going to work. acces_log is only valid within http, server, location;</div><div>rewriting urls for a specific location when the user agent matches, and then defining a custom log there should work.</div>
<div><br></div><div>Regards</div><div><br></div><div><br></div></div>