You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Chvostek <pa...@it.ca> on 2003/07/28 08:00:13 UTC

[users@httpd] referrer on embedded images?

Hiya.

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" "yadda"

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?

Thanks!

-- 
  Paul Chvostek                                             <pa...@it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org