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

x
?
Solved

Host 2 sites on one server with 2 IPs

Posted on 2012-03-16
4
Medium Priority
?
231 Views
Last Modified: 2012-03-16
I have two domain names www.site1.com and www.site2.com. I have one dedicated server with Windows Server 2008R2 on it. Because the first site has SSL it uses an IP for itself, so I purchased a second IP for the second site.
The first IP is used also for nameserver.
I set up the first site over a year ago and it works perfectly. Now I want to add the second site with its IP. I have done the following:
I added the site on IIS and edited bindings on for the second site, as following:
site2.com                  123.123.123.123   80
www.site2.com        123.123.123.123   80
123.123.123.123      123.123.123.123   80
I also added the second IP on advanced IP settings of the servers network card.
On the ISP of the second domain name I 've added the same nameserver as for the first name (actually the 1st IP Address).

Now the problem is that although the first site works fine even if I call it with the domain name or its IP, the second site works only if I call it with its IP. It doesn't work when I call www.site2.com.

Help, help, help!!!!
0
Comment
Question by:Soter13
[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
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
RobinHuman earned 1400 total points
ID: 37728831
0
 
LVL 30

Assisted Solution

by:IanTh
IanTh earned 600 total points
ID: 37728859
well your problem relates to dns

in dns do you have site2 to 123.123.123.123

as its working with ip so its just missing dns and thats probably on your server
0
 

Author Comment

by:Soter13
ID: 37728930
I understand that DNS is my problem, but for some other reason my server is down for the moment, so I cannot check the DNS settings.

When I manage to connect on it, I will let you know.

Thanks!
0
 

Author Comment

by:Soter13
ID: 37729538
It was all in DNS configurations.
Thank you both
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

722 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