httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Chvostek <>
Subject [users@httpd] referrer on embedded images?
Date Mon, 28 Jul 2003 06:00:13 GMT


If I embed an image in an HTML page, I believe my "combined" log should
include a Referer for that image.  But it doesn't.

At the moment, with logo.html that has <img src='logo.gif'>, I get:

n.n.n.n - - [28/Jul/2003:01:26:26 -0400] "GET /logo.html HTTP/1.1" 200 145 "-" "yadda"
n.n.n.n - - [28/Jul/2003:01:26:26 -0400] "GET /logo.gif HTTP/1.1" 304 - "-" "yadda"

And if logo.html includes an anchor like <a href='logo.gif'>blah</a>,
then clicking the link causes the log to show:

n.n.n.n - - [28/Jul/2003:01:35:19 -0400] "GET /logo.html HTTP/1.1" 200 173 "-" "yadda"
n.n.n.n - - [28/Jul/2003:01:35:29 -0400] "GET /logo.gif HTTP/1.1" 304 - "http://yadda/logo.html"

So I know the %{Referer}i part of my "combined" LogFormat is valid ...
but something is eating the data on embedded images.

Oddly, if I embed images from other virtualhosts on the same server, I
see Referer log entries that reflect the correct referring URL.  So it
seems this might be related to just this virtualhost, but the CustomLog
line for the virtualhost simply points to the default "combined" format.
I haven't done anything wacky with this virtualhost to distinguish it
from the other ones.

Any thoughts on how I can get the Referer to show up on embedded images,
or what I might inadvertantly be doing to remove it?


  Paul Chvostek                                             <>
  Operations / Abuse / Whatever
  it.canada, hosting and development         

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message