大家好, 我想使用asp创建像www.customer1.appsglobal/login.aspx这样的网站。 这里 customer1 根据不同的客户进行更改。但剩下的网址应该是相同的。 为此,我选择了IIS URL-Rewrite概念。 我们的域名为www.appsglobal。但是使用这个我们可以创建网址,例如 www.customer1.appsglobal/login.aspx [ ^ ] www.customer2.appsglobal/login.aspx [ ^ ] www.customer3.appsglobal/login.aspx [ ^ ] 所以请帮我这样做。 在预先感谢
Hi all, I want to create a webisite like www.customer1.appsglobal/login.aspx using asp. 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. But using this we can create url's like www.customer1.appsglobal/login.aspx[^] www.customer2.appsglobal/login.aspx[^] www.customer3.appsglobal/login.aspx[^] so please help me to do like this. Thanks in Advance
推荐答案如果您真正需要的唯一一点是URL不同,您可以将域绑定到IIS中的同一站点。现在请记住,其他一切必须保持不变。如果你想使用不同的CSS,图像等,你会看到在你的应用程序中建立对多个站点的支持。 首先你需要了解如何IIS上的绑定工作。查看 blogs.technet/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 blogs.technet/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页面
发布评论