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

x
?
Solved

Host 2 sites on one server with 2 IPs

Posted on 2012-03-16
4
Medium Priority
?
233 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

879 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