httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Bates <ms...@freezone.co.uk>
Subject [users@httpd] configure one file with multiple mime types?
Date Tue, 16 Mar 2010 00:00:56 GMT
How can I configure one file with multiple mime types?

The behaviour I want to achieve is that described here,
http://www.w3.org/TR/xhtml-media-types/

- when a file is requested and the user agent advertises
"application/xhtml+xml" in the "Accept:" request header, I want Apache
to respond with a "Content-Type: application/xhtml+xml" response header

- otherwise I want Apache to respond with a "Content-Type: text/html"
response header

I tried configuring both "application/xhtml+xml" and "text/html" mime
types with the "AddType" directive, without success - Apache always
responds with either "Content-Type: application/xhtml+xml" or
"Content-Type: text/html" - regardless of the "Accept:" request header

How can I configure one file with multiple mime types?

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