Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2005, 08:36 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default Have robots visited my site

Hello,

I know that in Apache you can see in the log files whether robots/web spiders have visited your sites.

I have looked in the tomcat logs, but they only report errors, can anyone tell me if I can see visits from robots in any other log files?

Thanks

 
Old February 22nd, 2005, 09:36 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have found that uncommenting the following:

<Valve className="org.apache.catalina.valves.AccessLogVal ve"
                 directory="logs" prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>


creates log files of visitors.
You need to add this to the in the section for the relevant virtual host.

Now I have another problem, I want to display the name of the requestor, not just the IP. I tried setting resolveHosts to true, but then could not connect to my site. Any ideas??

Thanks,

 
Old February 22nd, 2005, 09:50 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found I had:

enableLookups="false"

changed this to true and it worked ok, now I should be able to see how often google is dropping in:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
a:visited link clearing vferratusco CSS Cascading Style Sheets 8 June 16th, 2010 11:20 AM
Visited link Issue mat41 CSS Cascading Style Sheets 10 May 14th, 2008 07:42 PM
Chapter 3 - a:visited not working VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 3rd, 2008 12:31 AM
Cookieless & robots vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 July 9th, 2007 01:52 AM
track how many times the site is visited cindy Classic ASP Basics 4 October 6th, 2003 12:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.