aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2/conf/0012-httpd.conf-MIMEMagicFile.patch
blob: 4fa1911c23c15fc2c0f7bb0c278dcd576ed62370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From e0eca7b6d1837ceee414e08698108fb35e79635e Mon Sep 17 00:00:00 2001
From: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
Date: Fri, 11 Sep 2015 14:59:32 +0300
Subject: [PATCH 12/14] httpd.conf: MIMEMagicFile

---
 docs/conf/httpd.conf.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/conf/httpd.conf.in b/docs/conf/httpd.conf.in
index 388916f..61747cb 100644
--- a/docs/conf/httpd.conf.in
+++ b/docs/conf/httpd.conf.in
@@ -350,7 +350,9 @@ LogLevel warn
 # contents of the file itself to determine its type.  The MIMEMagicFile
 # directive tells the module where the hint definitions are located.
 #
-#MIMEMagicFile @rel_sysconfdir@/magic
+<IfModule mime_magic_module>
+    MIMEMagicFile @rel_sysconfdir@/magic
+</IfModule>
 
 #
 # Customizable error responses come in three flavors:
-- 
2.9.4