Hello All,
We have configured IIS 6 websites using Host Header to have multiple
domain names mapped to a single website (to optimize the IIS resource
utilization) . However, I want each domain to be pointing to a
different folder, something like:
website1
|-------Root
|-------Domain1
|-------Domain2
|-------Domain3
website2
|-------Root
|-------Domain4
.... and so on
The webiste1 HomeDirectory points to website1\Root, while I need all
Host Header (domain names) to point to their respective Folders. This
'Domain Name to Physical Path' mapping is kept in a text file.
We wrote an ISAPI Filter which is registered for IIS Event
'SF_NOTIFY_URL_MAP', and it fetches the information from the text file
and accordingly changes the PhysicalPath for the incoming HTTP
Requests.
This setup is working for all types of file extensions so far
including ASP.NET 1.1
Recently we have installed .NET Framework 2.0 and configured all
ScriptMaps to use version 2.0 (aspnet_regiis -r), and since then the
redirection explained above does NOT work for ASP.NET pages. Any
domainName which has ASPX page is looked at in HomeDirectory of the
corresponding website, while any other file extension is picked from
the configured mapping.
Can somebody please explain this behavior? Is it because of 'Faulty
Installation/Configuration' of .NET 2.0?
Thanks in advance
~TJ