How to route two sites from same IIS

melegant99
melegant99 used Ask the Experts™
on
I am a dns noob.

Ok, so I have an IIS server running sharepoint and team foundation server.

We somehow mapped through a forward lookup zone and IIS  portal.company.com to load our sharepoint from a browser.

Now I want to tfs.company.com to load our Team Foundation. We are using port 7777. I mapped this in IIS but when i goto tfs.company.com nothing loads. (though if i go to 192.168.1.1:7777/tfs it loads fine).

it must be something simple. Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Did you set this up through the http bindings on the site?

http://www.iis.net/ConfigReference/system.applicationHost/sites/site/bindings
sounds like you need to add a host (A) entry on your DNS box in your company.com forward lookup up zone for tfs and point it to 192.168.1.1.

Author

Commented:
I already have the DNS, it works ok because if I ping from another pc to tfs.company.com it replies from the right IP.

Do i need to have an access rule or something on my router?
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

IT Manager
Commented:
DNS can only translate a name to IP address. Therefore you can only translate tfs.company.com to a single IP. It cannot append the port 7777 for you.

What you should really look into is IIS host headers so that you can run different websites on the same server and on a single HTTP port.

You can edit the bindings in IIS to make tfs.company.com point to one website and portal.company.com point to another without having to add the port on it.
Leon FesterSenior Solutions Architect

Commented:
Agreed with brwwiggins.
Host headers will achieve the desired results

Some links for your reading:
http://support.microsoft.com/kb/324287
http://technet.microsoft.com/en-us/library/cc753195(WS.10).aspx
http://support.microsoft.com/kb/287726

Author

Commented:
Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial