如何创建www.customer.appsglobal.com/login.aspx页面 [英] How to create www.customer.appsglobal.com/login.aspx pages

查看:173
本文介绍了如何创建www.customer.appsglobal.com/login.aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想使用asp.net创建像www.customer1.appsglobal.com/login.aspx这样的网站。

这里 customer1 根据不同的客户进行更改。但剩下的网址应该是相同的。

为此,我选择了IIS URL-Rewrite概念。





我们的域名为www.appsglobal.com。但是使用这个我们可以创建网址,例如

www.customer1.appsglobal.com/login.aspx [ ^ ]

www.customer2.appsglobal.com/login.aspx [ ^ ]

www.customer3.appsglobal.com/login.aspx [ ^ ]



所以请帮我这样做。



在预先感谢

Hi all,
I want to create a webisite like www.customer1.appsglobal.com/login.aspx using asp.net.
Here customer1 is changed based on different customers. But remaining the url should be same.
For this i have choosen IIS URL-Rewrite concept.


We have a domain is www.appsglobal.com. But using this we can create url's like
www.customer1.appsglobal.com/login.aspx[^]
www.customer2.appsglobal.com/login.aspx[^]
www.customer3.appsglobal.com/login.aspx[^]

so please help me to do like this.

Thanks in Advance

推荐答案

如果您真正需要的唯一一点是URL不同,您可以将域绑定到IIS中的同一站点。现在请记住,其他一切必须保持不变。如果你想使用不同的CSS,图像等,你会看到在你的应用程序中建立对多个站点的支持。



首先你需要了解如何IIS上的绑定工作。查看 http://blogs.technet.com/b/chrad/archive/2010/01/24/understanding-iis-bindings-websites-virtual-directories-and-lastly-application-pools.aspx [ ^ ]



完成后,您可以将应用程序部署到服务器。在IIS下设置网站后,您只需应用您列出的每个URL。所以每个www.customerx都会指向同一个IIS站点。
If the only thing you really need is for the URL to be different you can just bind the domains to the same site in IIS. Now keep in mind that everything else must remain the same. If you want to use a different CSS, images, etc. you will have look at building support for multiple sites into your app.

First thing you need to understand how bindings on IIS work. View that http://blogs.technet.com/b/chrad/archive/2010/01/24/understanding-iis-bindings-websites-virtual-directories-and-lastly-application-pools.aspx[^]

Once you have that you can deploy you app to your server. After you setup the web site under IIS you just apply each of URLS you listed about. So every www.customerx would point to the same IIS site.


这篇关于如何创建www.customer.appsglobal.com/login.aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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