httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J. Tarricone" <bj...@ece.cornell.edu>
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 
<http://httpd.apache.org/docs-2.0/content-negotiation.html> 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.

thanks,
brian


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


Mime
View raw message