httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J. Tarricone" <>
Subject [users@httpd] trouble with content negotiation
Date Mon, 14 Jul 2003 20:32:56 GMT
i'm trying to set up a site where i have duplicate images: .png and .jpg 
files.  i'd prefer the .png files, but of course i want to support older 
browsers that can't handle them.  i've gone over 
<> repeatedly, 
and done a search of the mailing list archives, but i'm still stuck.

i've tried both the type-map and MultiViews approaches, and neither 
seems to be working properly.  using type-maps (adding 'AddHandler 
type-map .var' to httpd.conf, and 'Options -MultiViews' in .htaccess), i 
just get 404 errors when trying to access the image without an 
extension.  i have .var files that look basically like the examples on 
the url mentioned above:

URI: image

URI: image.png
Content-type: image/png; qs=0.9

URI: image.jpg
Content-type: image/jpeg; qs=0.5

i've tried with and without the qs= settings, same result.  if i turn 
MultiViews on, it _appears_ to work, but the results are weird.  mozilla 
is sending the server an Accept: header with image/png before image/jpeg 
(with the same q= setting), but apache seems to be returning the jpeg 
for some of the images and a png for others (it's always the same ones).

is there something i'm missing?  i've read over the content negotiation 
docs repeatedly and i can't seem to find anything.  i'd prefer the 
MultiViews method as i don't feel like maintaining a set of .var files, 
however i'd be interested i knowing why the .var-file method isn't 
working for me.  i've tried putting the AddHandler statement in 
.htaccess as well to no avail.  i'm running apache 2.0.45 if that helps.


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