<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://shazwazza.com/rss/xslt"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Shazwazza</title>
    <link>https://shazwazza.com/</link>
    <description>My blog which is pretty much just all about coding</description>
    <generator>Articulate, blogging built on Umbraco</generator>
    <image>
      <url>/media/0libq25y/frog.png?rmode=max&amp;v=1da0e911f4e6890</url>
      <title>Shazwazza</title>
      <link>https://shazwazza.com/</link>
    </image>
    <item>
      <guid isPermaLink="false">1272</guid>
      <link>https://shazwazza.com/post/changing-the-hostname-of-a-sharepoint-site/</link>
      <category>etc...</category>
      <category>Hosting</category>
      <category>Servers</category>
      <title>Changing the hostname of a SharePoint site</title>
      <description>&lt;div class="imported-post"&gt;This post was imported from FARMCode.org which has been discontinued. These posts now exist here as an archive. They may contain broken links and images.&lt;/div&gt;We’ve recently set up a SharePoint server here at TheFARM which will run parts of our intranet and be our document management system.&lt;/p&gt;  &lt;p&gt;So it got installed, but the problem was that it was installed onto a machine called &lt;strong&gt;mars&lt;/strong&gt;. I made the obligatory jokes about ‘life on mars’ (admittedly I may have made the joke a few to many times :P) but at the end of last year we ran a competition to name the new intranet.&lt;/p&gt;  &lt;p&gt;There were some fun names like SkyNet, and Randall, but ultimately the winning entry was &lt;strong&gt;TheBarn, &lt;/strong&gt;which is very aptly farm-based.    &lt;br /&gt;But we had a problem, we don’t want to rename the server from mars (plus I’ve done that on SharePoint before, baaaaaaaaaaaaaaaaaaaaaaaaaaaaad idea), so how do you get SharePoint to accept &lt;a href="http://thebarn"&gt;http://thebarn&lt;/a&gt; when that’s not the machine name?&lt;/p&gt;  &lt;p&gt;Unlike standard standard sites in IIS just adding a host header isn’t going to work, SharePoint will redirect you to the one it knows about, so although we were coming in via &lt;a href="http://thebarn"&gt;http://thebarn&lt;/a&gt; we’d end up at &lt;a href="http://mars"&gt;http://mars&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Hmmm…&lt;/p&gt;  &lt;p&gt;Luckily it is actually very easy to do with SharePoint. SharePoint has the ability to Extend a web application:&lt;/p&gt;  &lt;p&gt;&lt;a href="/image.axd?picture=WindowsLiveWriter/ChangingthehostnameofaSharePointsite/50385B65/image.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="/image.axd?picture=WindowsLiveWriter/ChangingthehostnameofaSharePointsite/5D9E6E6B/image_thumb.png" width="244" height="122" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;So you navigate here, choose the &lt;strong&gt;Extend an existing Web application&lt;/strong&gt;, select your site and enter the hostname (and set the port back to 80):&lt;/p&gt;  &lt;p&gt;&lt;a href="/image.axd?picture=WindowsLiveWriter/ChangingthehostnameofaSharePointsite/1FA4DDAD/image.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="/image.axd?picture=WindowsLiveWriter/ChangingthehostnameofaSharePointsite/746046A5/image_thumb.png" width="244" height="83" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Now you’ll have a SharePoint site which listens on your new host header. You can go and delete the old one if you want (&lt;strong&gt;Remove SharePoint from IIS Web site&lt;/strong&gt;) and then you’re done.&lt;/p&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:08:14 Z</pubDate>
      <a10:updated>2023-03-23T15:08:14Z</a10:updated>
    </item>
  </channel>
</rss>