Link to home
Start Free TrialLog in
Avatar of projectja
projectja

asked on

Multiple sites, same external IP on same port 80 in IIS 7.5 into Virtual Machine

Hi Guys,

IIS 7.5
Windows 2008 r2.


We are trying to configure different websites by using the same public IP and same port.

www.siteA.com
www.siteB.com

We've asssigned different internal IP to the server hosting these websites.
Internally, it is possible to access to www.siteA.com and www.siteB.com (we have incluided de internal IP address in the host file).

The problem is when we try it from outside it does not work.

Not Found

HTTP Error 404. The requested resource is not found.

Any experience with this?

Thanks in advance,

Mark
Avatar of Justin Owens
Justin Owens
Flag of United States of America image

How do your two web sites resolve the URL?  Are they static entries in your DNS server, or are they going out to a public Internet DNS server to resolve before coming back in?  Have you created two publicly hosted A records in DNS to point your two domains (which I assume you have already registered) back to your assigned IP by your ISP?

IIS 7.5 can look at the URL of the incoming request and properly get you to the site you need.  This is evidenced by your internal success.  Your server appears set up correctly.  What I would focus on is your public DNS entries: make sure they are properly registered and resolve to the proper IP address from a public DNS search.

Respectfully,

DrUltima
Avatar of projectja
projectja

ASKER

Hello,

Thanks for your feedback.

We have an external Public IP.
Both domains are pointing to this public IP.
Testing (ping) to www.siteA.com and www.siteB.com is OK (pointing to external IP)

We have not internal DNS. We have host file on the IIS 7.5.

I think there is something wrong. Interlally it is working OK.
SOLUTION
Avatar of Justin Owens
Justin Owens
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, It is configured. it is possible to reach the server with telnet
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I apologise for the delay.

Yes, I made a mistake configuring the NAT rule on the firewall. On the other hand i was neccesary to configure bindings on IIS correctly.

Our configuration

Only one public IP
allowing traffic on port 80
Configuring NAT rule to redirect traffic to the internal IIS server on port 80.
This IIS has differents websites, all of them configured on port 80.
http redirect configured.
It is working correctly.

Thank you very much