Multiple domains, same web application on IIS 6

In IIS 6, is it possible to have multiple domain names pointing to the same web application and conditionally serve CSS from a web application based on the domain name?

I need to place hundreds of different “skins” in the same web application, and the skin depends on the domain name, and I really do not want to run many web applications.

+5
source share
5 answers

+1 to rhinof to add multiple identifiers, but creating an HttpModule is a little more killing. You can simply switch the tag URL on the main page by viewing the contents of Request.Headers ["HOST"]

+7
source

1) - -.

2) .css aspnet_isapi.dll

3) http-, URL- .css-

4) web.config

+2

, , css .. Page.PreInit Request.ServerVariables [ "Url" ] ( , , , ).

, css, .

MasterPages .

, . .

+1

, , , , - . , .

, . , , , , , db.

, , . , , .

, CSS .

+1

, . IIS. , , Request.Headers [ "HOST" ] , .

+1

All Articles