Last post Jan 14, 2015 07:02 AM by strontium_99
Jan 14, 2015 05:45 AM|strontium_99|LINK
I'm running IIS 7.5 on Windows server 2008 R2.
I've got a site running with an SSL certificate attached: EG: Site A
This has got a virtual directory /global which is actually the root directory of another standard none SSL site: EG: Site B
The problem I've got is that both sites need to allow cross domain communication within the web.config IE:
<add name="access-control-allow-origin" value="*" />
<add name="access-control-allow-headers" value="content-type" />
This is causing an error on Site A because of the duplicate web.config files.
My question is, is there a way to get IIS to ignore the web.config file in the virtual directory?
I tried this Breaking parent web.config dependencies in sub applications
But suspect that only works for applications and not virtual directories.
Thanks in advance.
Jan 14, 2015 07:02 AM|strontium_99|LINK
Not to worry. Sorted it now be re-organizing my sites a little.