From e3139a3557ef685725516e693325ecebe7f1c247 Mon Sep 17 00:00:00 2001 From: mattab Date: Mon, 1 Dec 2014 15:46:47 +1300 Subject: [PATCH] Fixes #5398 use Apache AddHandler only when mod_mime module is enabled. This may create situations where it's hard to debug what the problem is when mod_mime is not activated... maybe should be added to system check --- plugins/Installation/ServerFilesGenerator.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php index 9551340e4ac..64ad8e83d87 100644 --- a/plugins/Installation/ServerFilesGenerator.php +++ b/plugins/Installation/ServerFilesGenerator.php @@ -32,9 +32,11 @@ public static function createHtAccessFiles() "\n"; $allowStaticAssets = - "# Serve HTML files as text/html mime type\n" . - "AddHandler text/html .html\n" . - "AddHandler text/html .htm\n\n" . + "# Serve HTML files as text/html mime type - Note: requires mod_mime apache module!\n" . + "\n" . + " AddHandler text/html .html\n" . + " AddHandler text/html .htm\n" . + "\n\n" . "# Allow to serve static files which are safe\n" . "\n" .