Project

General

Profile

Mimetype use-xattrDetails » History » Revision 2

Revision 1 (Anonymous, 2006-08-06 16:33) → Revision 2/7 (Anonymous, 2006-08-10 23:19)

{{{  
 #!rst  

 == mimetype.use-xattr 
 ================== 

 == 


 mimetype.use-xattr 

     If available, use the XFS-style extended attribute interface to retrieve the "Content-Type" attribute on each file, and use that as the mime type. If it's not defined or not available, fall back to the mimetype.assign assignment. 

     Example: :: 

        

     {{{ 
 mimetype.use-xattr = "enable" 

     
 }}} 

 on shell use: :: 

       


    {{{ 
 $ attr -s Content-Type -V image/svg svgfile.svg 
    
     

 or :: 

       

 $ attr -s Content-Type -V text/html indexfile 

 
 }}} 


 == See Also 
 ======== 

  == 
  * [wiki:mimetype.assignDetails mimetype.assign option <http://trac.lighttpd.net/wiki:mimetype.assignDetails> 


 }}} option]