简体   繁体   English

将子网页映射到其自己的域(IIS 8,Azure VM 2012R2,Drupal CMS)

[英]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.

相关问题 服务器上的时区 IIS windows 2012R2 - TimeZone on Server IIS windows 2012R2 IIS iis_iusrs在Windows Server 2012R2上消失了 - IIS iis_iusrs disappeared on Windows Server 2012R2 IISNet Server 2012R2的DotNetCore 1.0.1 WindowsHosting安装失败 - DotNetCore 1.0.1 WindowsHosting Installation Fails for IIS Windows Server 2012R2 如何在Powershell脚本中将MS Web Deploy安装到Azure Windows Server 2012 R2 VM? - How do I install MS Web Deploy to an Azure Windows Server 2012 R2 VM in a powershell script? 使用IIS配置Windows Server 2012 VM来调用Azure - configuring a Windows Server 2012 VM using IIS to call Azure Azure Windows VM 上的 IIS Web 托管问题 - IIS Web Hosting Issue on Azure Windows VM HTTP 错误 500.19 - 内部服务器错误代码 0x8007000d IIS 8.5 Windows Server 2012R2 - HTTP Error 500.19 - Internal Server Error Code 0x8007000d IIS 8.5 Windows Server 2012R2 将域映射到托管在 IIS 中的 Web 应用程序 - Map domain to web application hosted in IIS 子域问题-IIS 8 - Sub domain issue - IIS 8 在.NET Web应用程序上浏览时,我的网站(在Azure VM Windows 2012服务器上)的URL之一开始显示“此页面无法显示” - One of the URLs on my web site (on Azure VM Windows 2012 server) has started getting “This page can't be displayed” when browsed on my , .NET web app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM