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.
+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"]
1) - -.
2) .css aspnet_isapi.dll
3) http-, URL- .css-
4) web.config
, , css .. Page.PreInit Request.ServerVariables [ "Url" ] ( , , , ).
, css, .
MasterPages .
, . .
, , , , - . , .
, . , , , , , db.
, , . , , .
, CSS .
, . IIS. , , Request.Headers [ "HOST" ] , .