Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hosting 2 separate websites on the same server

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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

671 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