I am trying to configure HTTP response headers on IIS8. I've created a site with one file - index.php with nothing in it, with no additional configurations - there is no web.config file within site folder. When I open it in browser(I've tried firefox and IE10) and look at response headers with developer tools I see there:
Content-Type: text/html; charset=UTF-8
Then I add HTTP response header in IIS: "Content-Type" "text/html; charset=windows-1251" (web.config is created after that) and look at the responce headers in the browser:
"Content-Type text/html; charset=UTF-8,text/html; charset=windows-1251"
Firefox handle this normally - my real site works fine, but in IE10 it doesn't work(ajax query fire an error),despite the fact that this same site on apache server return normal header "Content-Type text/html; charset=windows-1251" and in IE10 it works fine.
As far as I understand IIS doesn't allow to define multiple headers with the same name - If I set HTTP response header with name "Content-Type" in server settings, and in site settings it leads to "HTTP 500.19 - Internal Server Error", so this shouldn't be an IIS issue. But I can't figure it out where does this header come from, I need to move my site from apache to IIS server but it doesn't work in IE, can you help?