mime.conf ignores dependency to mod_include
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 16.04 LTS the file installed by apache2 as /etc/apache2/
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
The AddOutputFilter line needs mod_include to function correctly. If mod_include is not enabled, but mime.conf is enabled, then any request to a file ending on .shtml will cause the following error being printed in the log:
AH00082: an unknown filter was not added: includes
This can be quite irritating.
It can be fixed by only adding the output filter in case the required mod_include is available:
<IfModule mod_include.c>
</IfModule>
In case this fix is something Ubuntu does not want to fix but expects from upstream please report accordingly upstream to have a fix included in Ubuntu.
Hello and thank you for reporting this issue.
Did you change your config to include the stated item:
# (You will also need to add "Includes" to the "Options" directive.)
?
Just wondering if that alone fixes it? Given that this code is inherited from Debian, we probably want to fix it there, would you be willing to report the bug there or see if it has already been filed?