Crumpled Thoughts

November 10th, 2010

Configuring IIS 7 to host files for an http install of a CentOS based Linux distro

Posted by Chris in Linux, Windows, Sysadmin

I recently had to install Elastix on a machine with no CD ROM. I needed to host the files on a Windows web server on my home network, and had to tweak some of the settings in the web site configuration to get it to work.

Open the IIS manager. Click on the web site you’re using to host the files, then double-click the ‘MIME Types’ icon.

Add the following MIME types:

.cfg "text/plain"
.img "application/octet-stream"

Edit the .rpm MIME type and change it to “application/x-rpm”

Some of the rpm names in a CentOS install contain double-escaped strings, and will give a 404 error. You need to modify the web.config to allow double-escaped strings. See this Microsoft article for the solution.