fast_mime_map - File extension to MIME type mapping
Plugin fast_mime_map # Optionally: MimeMap .foo application/foo
This module attempts to map filenames to MIME types without doing any I/O. It is purely based on file extensions. If you need to introspect the contents of the file to get the MIME type then use the magic_mime_map plugin.
There is a default mapping. Best to view the source to find out what it is. Anything specified in the MimeMap config directives overrides the default mappings.
MimeMap
The default MIME type is text/html (in case an extension cannot be found in your custom mappings nor the default mappings). To override the default mapping:
MimeMap #default application/octet-stream
(Or whatever default you would prefer).
To install AxKit2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit2
CPAN shell
perl -MCPAN -e shell install AxKit2
For more information on module installation, please visit the detailed CPAN module installation guide.