Public bug reported:
Binary package hint: lighttpd
The Ubuntu lighttpd config uses a Perl script (/usr/share/lighttpd
/create-mime.assign.pl) to generate a mimetype.assign statement for
/etc/lighttpd/lighttpd.conf. The statement is on the form:
mimetype.assign = ( ... )
It's included in the config like so:
#### external configuration files
## mimetype mapping
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
However, if I would like to override some mime types in a clean way
(with text/plain for source code files say) I would like to write:
#### external configuration files
## mimetype mapping
# change mime type for haskell source files so they get displayed
# inside the browser
mimetype.assign = ( ".hs" => "text/plain",
".lhs" => "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
As the the first matching file extension is picked. This would work if
the Perl script was changed to read:
mimetype.assign += ( ... )
** Affects: lighttpd (Ubuntu)
Importance: Undecided
Status: New
--
lighttpd mime type script is inflexible
https://bugs.launchpad.net/bugs/181733
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs