[英]Map a sub web page to its own domain (IIS 8, Azure VM 2012R2, Drupal CMS)
I am hosting a web site on an azure VM (IIS 8). 我在一个Azure VM(IIS 8)上托管一个网站。 The site (lets say www.site1.com) has its own domain name association and is built on Drupal.
该网站(例如www.site1.com)具有自己的域名关联,并基于Drupal构建。 I want to map a sub page (within the same Drupal instance) to its own domain.
我想将一个子页面(在同一Drupal实例内)映射到其自己的域。 For example I want the page that currently appears under: www.site1.com/page1, to also appear under: www.site2.com.
例如,我希望当前显示在www.site1.com/page1下的页面也显示在www.site2.com下。
Thanks in advance 提前致谢
I suppose the response to this question below pretty much covers it for you 我想下面对这个问题的回答几乎可以为您解决
Set default webpage for website on Microsoft Windows Azure 在Microsoft Windows Azure上为网站设置默认网页
You can set this up via the location paths 您可以通过位置路径进行设置
<location path=”webFolder1″>
<system.webServer>
<defaultDocument>
<files>
<add value=”myDefalutPage.aspx” />
</files>
</defaultDocument>
</system.webServer>
</location>
<location path=”webFolder2″>
<system.webServer>
<defaultDocument>
<files>
<add value=” myDefalutPage.aspx” />
</files>
</defaultDocument>
</system.webServer>
</location>
This way you can cover both the domains by just changing your values for files and where its pointing to. 这样,您只需更改文件的值及其指向的位置,即可覆盖两个域。
Refer to this article for more information. 有关更多信息,请参考本文 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.