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.
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 freedesktop.org
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

Usage:

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, 1:35 GMT
price:
FREE!
developed by:
Lennart Poettering
homepage:
0pointer.de
license type:
The Apache License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT