[users@httpd] Use of content negotiation with application/xhtml+xml

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

 



Dear Folks,

I have created a file index.var in the root of my document tree, and
have index.sxhtml a symlink to index.shtml.  As you can see below, I
am using SSI (to include static menu and style xhtml).

$ cat index.var
URI: index

URI: index.sxhtml
Content-type: application/xhtml+xml; qs=0.95

URI: index.shtml
Content-type: text/html; qs=1.0

I also have these in my global configuration:

AddHandler type-map .var
AddType text/html .shtml
AddType application/xhtml+xml .sxhtml
AddOutputFilter INCLUDES .sxhtml .shtml

When I ask for http://nicku.org/index I get 404, but with
http://nicku.org/index.var I get the page correctly served as
application/xhtml+xml in Firefox 1.5.0, and as text/html to other
browsers.

QUESTIONS:
==========

1. From
  http://httpd.apache.org/docs/2.2/content-negotiation.html#naming I
  expected that I would be able to ask for http://nicku.org/index and
  get the negotiated content, and that I would not have to ask for
  http://nicku.org/index.var

  Is this understanding correct?

2. If it is correct, what could I be doing wrong?

3. If it not correct, then what is the appropriate method to ask for
  the negotiation to happen; should I do a redirect using mod_rewrite
  or some other shenanigans?

4. Could there be any interaction between using SSI and content
  negotiation together?

5. If I want the entire web site to use content negotion, do I need to
  create a corresponding type-map file foo.var for each
  foo.shtml/foo.sxhtml and foo.html/foo.xhtml pair? (I have written a
  little Perl program to do that at
  http://nicku.org/software/gen-type-map)
--
Nick Urbanik   RHCE         http://nicku.org        nicku@xxxxxxxxx
GPG: 7FFA CDC7+5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24

Attachment: pgpRjFXdDUy0Q.pgp
Description: PGP signature


[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