TFS 2101: Setting up TSWA with host headers

Here is what I did with my setup:

My TFS site was hosted on standard port 8080 on a member server in my Internal testing contoso.com domain.

So I  had created a DNS alias record called “MyTFS” for my TFS server whose NetBIOS names is tfs001.

Now I went into IIS & dropped the default header (port 8080, all-unassigned) for the TFS web site.

I added a new header, port 80, MyTfs, all-unassigned for the TFS web site.

I did a IISReset /noforce. (Note: Make sure you are appending the /noforce switch, sometimse the command errors out. If that happens, keep running IISReset /noforce again until it succeeds. Without the noforce switch the new host header settings may not be preserved for the TFS site in IIS.)

Then I went in the TFS Admin console & updated my Notfication & Server uris from:

https://tfs001:8080/tfs

to

https://mytfs/tfs

This automatically changes my TSWA site uri to https://mytfs/tfs/web.

Now I edited the web.config file in the root of the TSWA site(which is the “web” folder in TFS install dir) in a text editor such notepad and changed the section:

<tfServers>

      <!-- <add name="https://server:8080" /> -->

    </tfServers>

 

To:

<tfServers>

<add name="https://mytfs/tfs" />

</tfServers>

 

I saved & closed the web.config file.

Did an IISreset /noforce.

I am able to browse TSWA site in IE using https://myTFS/tfs/web and use TSWA for any Collection\Project.