configure one file with multiple mime types?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux