Perhaps I missed it in your narrative, but what do Apache's own logs
say?  
--Ben


-----Original Message-----
From: Matthew Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 7:30 AM
To: CF-Linux
Subject: Apache/CFMX/RHEL Problem

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.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:14:4080
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

Reply via email to