Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hosting 2 separate websites on the same server

Posted on 2006-07-12
5
Medium Priority
?
154 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 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

876 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