且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我将 SDL Tridion 2011 实例设置为使用多个主机标头运行,但现在核心服务不起作用.我如何解决它?

更新时间:2022-05-28 01:18:11

您可以通过编辑 Tridion UI 和核心服务的 web.config 来启用多站点绑定:

You can enabled the multiple site bindings by editing the web.config for the Tridion UI and the Core Service:

  • 打开 [Tridion 安装文件夹]\web\WebUI\WebRoot\ 中的 web.config
  • 找到 serviceHostingEnvironment 部分,为 multipleSiteBindingsEnabled="true" 向该节点添加一个新属性
  • 这应该看起来像 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
  • 保存文件
  • 打开 [Tridion 安装文件夹]\webservices\ 中的 web.config
  • 找到 serviceHostingEnvironment 部分
  • 为 multipleSiteBindingsEnabled="true" 为该节点添加一个新属性,然后看起来应该像 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
  • 保存文件

如果您不想为所有 URL 启用它,您可以为特定的 URL 启用它,例如:

If you don't want to enable it for all URL's you can enable it for specific ones like:

<system.serviceModel>  
    <serviceHostingEnvironment>  
        <baseAddressPrefixFilters>  
            <add prefix="http://test1.tridion.com"/>  
            <add prefix="http://test2.tridion.com"/>  
        </baseAddressPrefixFilters>  
    </serviceHostingEnvironment>  
</system.serviceModel>