<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/1740.htm</link>
<title><![CDATA[[SPS] SharePoint Foundation 2013 创建自定义主机头的网站集]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Microsoft Office]]></category>
<pubDate>Mon, 01 Sep 2014 07:53:28 +0000</pubDate> 
<guid>https://maytide.net/read.php/1740.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/sharepoint.png"><img title="sharepoint" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="sharepoint" src="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/sharepoint_thumb.png" width="222" height="45" /></a></p>&nbsp;&nbsp;<p><font color="#fd3f0d" size="4"><strong>SharePoint Foundation 2013 创建自定义主机头的网站集</strong></font></p>&nbsp;&nbsp;<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; SharePoint Foundation 2013 创建“Web 应用程序”时会生成首个网站集（如：http://sps.contoso.com），当再基于该 Web 应用程序创建网站集时会发现“网站地址”只能设置为“<strong>http://sps.contoso.com/sites/</strong><em>xxxx</em>”的形式。当交付用户使用时由于 URL 过于复杂，会大大降低用户的体验度。</p>&nbsp;&nbsp;<p><a href="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_thumb.png" width="634" height="343" /></a></p>&nbsp;&nbsp;<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 其实在 SharePoint 上可以使用命令行管理程序来创建自定义主机头的网站集。在 TechNet SharePoint 资源库的 <a href="http://technet.microsoft.com/zh-cn/library/ff607937(v=office.15).aspx" target="_blank">New-SPSite</a> 命令参考中给出了示例，参考如下：</p>&nbsp;&nbsp;<p>PS:<div class="code">New-SPSite https://cmcc.contoso.com –name “CMCC” –OwnerAlias “contoso\goxia” –HostHeaderWebApplication https://sps.contoso.com</div></p>&nbsp;&nbsp;<p><a href="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_3.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_thumb_3.png" width="634" height="416" /></a></p>&nbsp;&nbsp;<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 该示例将为创建一个主机头为“cmcc.contoso.com”的网站集，该网站集的名称为“CMCC”，所有者为“goxia”，隶属于“sps.contoso.com”Web 应用程序。现在到 SharePoint 管理中心查看所有网站集就能看到这个刚创建的自定义主机头的网站集。</p>&nbsp;&nbsp;<p><a href="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_4.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_thumb_4.png" width="634" height="372" /></a></p>&nbsp;&nbsp;<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 因为前面的命令行并未指定模板，所以在第一次访问这个网站集时会要求选择网站模板，在完成初始化后便能够正常访问网站。虽然使用自定义主机头访问该网站集，但实际上 SharePoint 并不会在系统的 IIS 上创建新的站点，整个处理过程都是由 SharePoint 自身完成的，因为同在一个 Web 应用程序下，所以是共用的一套 Web 应用程序配置和数据库。</p>&nbsp;&nbsp;<p><a href="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_5.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/40297d25572e_E55E/image_thumb_5.png" width="634" height="382" /></a></p>
]]>
</description>
</item>
</channel>
</rss>