Cliff may have a good point -- I'd definitely at least try that.  I'm
tending to think that what you're seeing is the external redirect that
Apache is doing for the trailing-slash.  Have you tried accessing the
site using the trailing slash (or even going directly to /index.cfm) to
see if it's having the same effect?

If you're not using relative path links on the index.cfm page for
images/hrefs, then you might be able to override the external redirect
behavior.  Google "mod rewrite" or "trailing slash Apache" and you'll
find:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Which has a small section on trailing-slash redirects (how to put them
in httpd.conf):
RewriteEngine  on
RewriteBase    /~quux/
RewriteRule    ^foo$  foo/  [R]

How exactly you would do this for the root directory, I am not 100%
certain (not having needed to previously do this myself), however if you
leave off the "[R]" bit, it should *not* externally force the browser to
redirect... but the browser will think that it is in the right spot, and
any relative links will be off.

YMMV, but I hope this helps.

--Ben




-----Original Message-----
From: Matthew Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 3:21 PM
To: CF-Linux
Subject: RE: Apache/CFMX/RHEL Problem

Thanks, Ben.  Here is an extract from the 'httpd.conf' file:

<VirtualHost x.x.x.x>
    ServerName www.nameofsite.co.uk
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home/sites/www.nameofsite.co.uk/web
    ServerAlias nameofsite.co.uk www.name-of-site.co.uk
name-of-site.co.uk
    ErrorLog /home/sites/www.nameofsite.co.uk/logs/error_log
    TransferLog "|rotatelogs
/home/sites/www.nameofsite.co.uk/logs/access_log
604800
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\""
</VirtualHost>

When accessing the Home Page, the browser automatically appends the '/'
and then the page is displayed (plus the multiple log entries).  When
any other page is browsed, the URL becomes (for example):

http://www.nameofsite.co.uk/index.cfm?fuseaction=about.index

.....and you only get one log entry for the page.

According to my (very basic) understanding of Apache, 'ServerName'
shouldn't have a trailing '/'.  Is there a global setting where this
should be added for all domains or am I missing something?

Apache is version 1.3.x

Many thanks,


Matt.

>  Just an odd thought -- are you accessing the site w/ the same *exact*

> URL as specified in httpd.conf?
> E.g. if your conf says:  "http://www.google.com"; (no trailing whack), 
> are you entering the same thing, or "http://www.google.com/"; (trailing
> whack) ... Or vice versa.
> 
> I've heard in some configurations that this can result in a
double-hit.
> 
> --Ben



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4100
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