mod_mime_xattr 0.4

mod_mime_xattr is a module for the Apache HTTPD 2.0 which may be used to set a range of MIME properties.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
The Apache License 
Lennart Poettering
ROOT \ Internet \ HTTP (WWW)
mod_mime_xattr is a simple Apache HTTPD module that lets you use file system extended attributes data for MIME type detection.

The current version of mod_mime_xattr has support for Linux style EAs which are supported by Linux 2.4 with the ACL/EA patches applied and vanilla Linux 2.6. The following attributes may be used:

user.mime_type: set the MIME type of a file explicitly. This attribute is compatible with the shared MIME database specification as published by
user.charset: set the charset used in a file
user.mime_encoding: set the MIME encoding of a file (e.g. gzip)
user.apache_handler: set the apache handler of a file explicitly


You may get/set an extended attribute for a file with the Linux command line utilities getfattr/setfattr:

setfattr -n "user.mime_type" -v "text/html" foo.file

The file foo.file will be served as HTML now. For more information consult the concerning man pages.

If used with symbolic links, mod_mime_xattr will first check if an EA is set for the symlink itself, and second for the file the link points to. The user.charset EA is only used when the user.mime_type EA is set as well.

What's New in This Release:

This version was updated for Apache 2.2.

Last updated on April 18th, 2007

#Apache module #MIME properties #HTTPD module #mod_mime_xattr #Apache #module #MIME

Add your review!