Solved

Hosting 2 separate websites on the same server

Posted on 2006-07-12
5
148 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

13 Experts available now in Live!

Get 1:1 Help Now