Solved

Hosting 2 separate websites on the same server

Posted on 2006-07-12
5
151 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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