I'm quite ignorant about IIS 7 but after using ii7 manager I've noticed that it's easier than expected to modify
the preconfigured mime types and *any* (I don't know exactly what can be modified or not) other configuration
by adding/modifying "web.config" in the root directory.
This sample file web.config is a modification for the svg that have a wrong mime type and the svg are not showing correctly.
web.config
--------------------------------------------------------------------------
<configuration>
<system .webserver="">
<staticcontent>
<remove fileextension=".svg2">
<remove fileextension=".svg">
<mimemap fileextension=".svg" mimetype="image/svg+xml">
<mimemap fileextension=".svg2" mimetype="image/svg+xml">
</mimemap></mimemap></remove></remove></staticcontent>
</system>
</configuration>
--------------------------------------------------------------------------
With this modification in web.config (and there's no need to use any manager)
we can reconfigure the mime type to "image/svg+xml".
On an aruba, ngi servers I've got "image/svg xml" .... that seems to be wrong and gives problems on most of the browsers.
More things can be modified/added.
the preconfigured mime types and *any* (I don't know exactly what can be modified or not) other configuration
by adding/modifying "web.config" in the root directory.
This sample file web.config is a modification for the svg that have a wrong mime type and the svg are not showing correctly.
web.config
--------------------------------------------------------------------------
<configuration>
<system .webserver="">
<staticcontent>
<remove fileextension=".svg2">
<remove fileextension=".svg">
<mimemap fileextension=".svg" mimetype="image/svg+xml">
<mimemap fileextension=".svg2" mimetype="image/svg+xml">
</mimemap></mimemap></remove></remove></staticcontent>
</system>
</configuration>
--------------------------------------------------------------------------
With this modification in web.config (and there's no need to use any manager)
we can reconfigure the mime type to "image/svg+xml".
On an aruba, ngi servers I've got "image/svg xml" .... that seems to be wrong and gives problems on most of the browsers.
More things can be modified/added.
Comments
Post a Comment