diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-28 04:47:26 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-28 04:47:26 +0400 |
commit | 6f17795b482824a027b0f2dcfe28212d0a32901d (patch) | |
tree | 040c4dfdac08fd0cec414dac9ce6319c0f2c2416 /plugins/Installation/ServerFilesGenerator.php | |
parent | 9be0bd5a3a8fe8603fc619e14fe1b4f2cdc48f8d (diff) |
Enabling SVG files under windows IIS
I had a similar issue using IIS and it was caused by a 404 error on the SVG files. IIS won't serve unknown file types and the type for SVG files (image/svg+xml) isn't included by default.
http://www.iis.net/learn/manage/managing-your-configuration-settings/adding-ie-9-mime-types-to-iis
http://piwik.org/faq/troubleshooting/faq_17051/
http://forum.piwik.org/read.php?2,101488
Diffstat (limited to 'plugins/Installation/ServerFilesGenerator.php')
-rw-r--r-- | plugins/Installation/ServerFilesGenerator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php index 74b4b7e323..d7e4c5ce87 100644 --- a/plugins/Installation/ServerFilesGenerator.php +++ b/plugins/Installation/ServerFilesGenerator.php @@ -121,6 +121,10 @@ class ServerFilesGenerator <add value="index.php" /> </files> </defaultDocument> + <staticContent> + <remove fileExtension=".svg" /> + <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> + </staticContent> </system.webServer> </configuration>'); |