Dear All, I posted the message below 10 days ago and still haven't managed to find a solution. I think we can simplify the problem down, so does anyone know the answer to this question?
Apache Logging: - Why would Apache create multiple entries in the log file for a user accessing a single CF page? It only ever happens when it is the index file. e.g. [start of log] x.x.x.x - - [30/Nov/2005:16:20:49 +0000] "GET / HTTP/1.1" 200 5663 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" [then entries for rest of the site css, js, images etc] x.x.x.x - - [30/Nov/2005:16:20:58 +0000] "GET / HTTP/1.1" 200 5663 "http://www.name-of-site.co.uk/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" x.x.x.x - - [30/Nov/2005:16:20:58 +0000] "GET / HTTP/1.1" 200 5663 "http://www.name-of-site.co.uk/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" x.x.x.x - - [30/Nov/2005:16:20:58 +0000] "GET / HTTP/1.1" 200 5663 "http://www.name-of-site.co.uk/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" x.x.x.x - - [30/Nov/2005:16:20:59 +0000] "GET / HTTP/1.1" 200 5663 "http://www.name-of-site.co.uk/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" x.x.x.x - - [30/Nov/2005:16:20:59 +0000] "GET / HTTP/1.1" 200 5663 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5" [end of log] It starts with a referrer of "-"; ends with a referrer of "-", and then puts in several entries with a referrer containing the URL. It is driving us nuts. Does anyone have any idea why we are not just getting the one request? Kind regards, Matt. Original message: ================================================================== Dear All, We have a very odd problem occuring with an Apache/CFMX/RHEL setup and would appreciate any ideas as to the potential cause. Background is as follows: We are running some page logging code on a Fusebox 3 site. The logging code is basically a sql insert query held within an application scoped cfc method. When a page is requested fusebox builds the page and then inserts the content into a layout file containing the header, footer and navigation elements. The logging code is also in this layout file so that it is only called once per page request. It logs basic stuff available from the cgi vars as well as circuit, fuseaction and page id details. We noticed that the page views for the home page (index.cfm or index.cfm?fuseaction=home.index) were considerably higher than other pages. On further investigation it appears that something strange is happening that results in between 2 and 4 additional log entries being made. These 'extra' page views show up about 1 or 2 seconds after the initial page request. When cf debug is switched on we see the insert query happens only once and the logid (a UUID from the CreateUUID() func)is that of the first log entry for that page request. The additional log entries share all of the same information apart from the UUID, logdate (datetime) which will be 1 or 2 secs after the original log entry and the referrer (see below)? The site is run on RHEL 2.1 using CFMX 6.1 and Apache 1.3.x. When the site is run on a dev machine running XP Pro, CFMX 6.1 and IIS only 1 log entry is seen per page request. Therefore: 1. What is causing the multiple hits for the home page and why do we not see it happening under Windows? 2. Is apache looping the request internally but only outputting the first response from CF to the browser? 3. If coldfusion was looping then we should see the last log entry in the debug not the first? 4. The other strange thing which may help pinpoint the problem is that when the page is visited by typing the address in browser (no referrer) you see this log entry (as the first one) with no referrer. The additional hits contain a referrer url that matches what was typed into the browser. All very odd. Any ideas would be very much appreciated. Many thanks, Matt. ================================================================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:14:4084 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.14 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
