URL Mapping - ApacheCon 2005
Content negotiation - var file
  • Multiviews is very slow, as it must scan the entire directory

  • Create a var file, listing all variants, and now Apache just has to look on place

  • Of course, you have to keep your var file updated when you add/remove documents

    
        URI: foo
    
      
    
        URI: foo.en.html
        Content-Type: text/html
        Content-Language: en
    
      
    
        URI: foo.fr.de.html
        Content-Type: text/html;charset=iso-8859-2
        Content-Language: fr, de
    
      

  • Configure with

    
        AddHandler type-map .var
    
      

Index
Back to Content Negotiation - multiple criteria
Forward to Error documents

ApacheCon 2005 : URL Mapping - Slide #25 of 45