Guys
I have an odd problem where I want an existing portal application to respond to a variety of URLs and I will dynamically skin it depending on the URL.
At first glance this would seem easy. Just make the site respond to all the host headers.
But there is a snag. The application developers in their rather odd wisdom had added the key "PortalHostUrl" to the web.config settings. It is this URL to which all forms are scripted to return thus wrecking the whole setup. The developers refuse to modify the application.
I have got round this by duplicating the physical directory for each site (with its own unique url) and altering the web.configs accordingly.
This seems stupid and wasteful plus requiring maintenance of numerous resources,
Is there a way I can use a single physical resource and dispense with web.config and move it into ApplicatioHost.config (or at least the relevant appsettings part of the web.config) as entries for the separate sites?