Solved

Hosting 2 separate websites on the same server

Posted on 2006-07-12
5
147 Views
Last Modified: 2010-04-18
Hi All,
I have two websites: www.domainA.com and www.domainB.com  the dns record for both websites will point to the same IP address.  This IP address will be routed to a single web server.  How can I host two completely separate websites on the same Windows 2003 web server?

Any ideas would be greatly appreciated.

Scott
0
Comment
Question by:smpross
  • 3
  • 2
5 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
ID: 17090260
Host Headers & IIS

To host more than one namespace on an IIS server you need to use a combination of DNS and Host Headers.

For example http://my_intranet is your corporate website and you want to put all the company reports at http://reports  then you either have to build another IIS server and point “reports” to its IP address which can prove to be a bit expensive :) OR use Host Headers.

Using the above example this is how to make http://reports point to the right location on your IIS server.

1.      Go to your DNS Server.
2.      Go to Administrative tools  > DNS (or run mmc and add the DNS snap in)
3.      Drill down to Your_Servername > Forward Lookup Zones > Your_Domainname and right click it.
4.      Select “New Alias (CNAME)…..”
5.      In alias name type in reports.
6.      Click Browse and browse to your IIS Server and click OK.
7.      Now go to the IIS Server.
8.      Go to Administrative tools > Internet Information Server (or run mmc and add the IIS snap in).
9.      Drill down to the website you want to load for http://reports
10.      Right click it > Properties.
11.      The Default tab is “Web Site” the top section is “Web Site Identification”.
12.      Press the “Advanced” button.
13.      Select the default entry at the top (usually it’s the IP address, then click Edit.
14.      In the section that says “Host Header Name” type in reports > OK > OK.
15.      Go to the “Documents” tab > Click “Add”.
16.      Select the document you want to appear when http://reports is typed in e.g. thispage.htm click OK > Move it to the top of the list > OK.
0
 

Author Comment

by:smpross
ID: 17090381
Pete,
But these are for websites that will be available to Internet users (Not sure if that would make a difference) and we have an outside source controlling our DNS settings.

Any ideas?

Scott
0
 

Author Comment

by:smpross
ID: 17090396
One more thing.  Both websites point to the same IP address.

Scott
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 17093345
as long as both DNS records point to the correct IP address (yes they can both have the same IP address) then no problem.
0
 

Author Comment

by:smpross
ID: 17098792
Thanks Pete,
Here are your points!

Scott
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now