多个域,在IIS 6相同的Web应用程序 [英] Multiple domains, same web application on IIS 6

查看:263
本文介绍了多个域,在IIS 6相同的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS 6,是有可能有指向同一个Web应用程序的多个域名,并有条件地从基于域名?

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

我需要在同一Web应用程序承载数百个不同的皮肤的,与皮肤是依赖于域名,我真的不想发动吨Web应用程序。

I need to host hundreds of different "skins" on the same web application, with the skin being dependent upon the domain name, and I really don't want to launch tons of web applications.

推荐答案

+1至rhinof添加多重身份,而是创建一个HTTP模块是有点超必杀。你可以简单地通过检查Request.Headers的内容切换母版页标签的URL [HOST]

+1 to rhinof for adding multiple identities, but creating a HttpModule is a bit over kill. You can simply switch the URL of the tag in a Master Page by examining the contents of Request.Headers["HOST"]

这篇关于多个域,在IIS 6相同的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆