?
Solved

IIS7 host headers through load balancer multiple ip addresses

Posted on 2012-04-02
4
Medium Priority
?
349 Views
Last Modified: 2013-04-03
I have a webserver with multiple websites and 2 public ip's.  xxx.xxx.xxx.1 and xxx.xxx.xxx.2
the public ip xxx.xxx.xxx.1 has multiple dns entries e.g. web1.site.com, web2.site.com,web3.site.com and there are 3 websites each using host headers.

web1.site.com -> xxx.xxx.xxx.1 ->  website1
web2.site.com -> xxx.xxx.xxx.1 ->  website2
web3.site.com -> xxx.xxx.xxx.1 ->  website3
 xxx.xxx.xxx.2 has no dns entries associated with it

what i would like to have happen is allow http://xxx.xxx.xxx.2 access to website3 but not have http://xxx.xxx.xxx.1 access to website3.  
in order to get http://xxx.xxx.xxx.2 to work i had to put in the internal ip address of the webserver as a host header.  when i do that it allows xxx.xxx.xxx.1 to return a page as well.  

am i asking for the impossible?
so in summary I want the following


http:\\web1.site.com should work and display website1
http:\\web2.site.com should work and display website2
http:\\web3.site.com should work and display website3
http:\\xxx.xxx.xxx.2 should work and display website3
http:\\xxx.xxx.xxx.1 should go to an error page


Thanks in advance
0
Comment
Question by:stevetheski
[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
4 Comments
 
LVL 11

Expert Comment

by:Sanjay Santoki
ID: 37800814
Hello,

You simply need to add a host header on website 3 with xxx.xxx.xxx.2 IP, port 80 and host header blank.

Regards,
Sanjay Santoki
0
 
LVL 4

Author Comment

by:stevetheski
ID: 37809433
sanjay
i tried that but it does not work
I believe it is due t the virtual ip from the load balancer
0
 
LVL 4

Accepted Solution

by:
stevetheski earned 0 total points
ID: 39031673
please close this Q
0
 
LVL 4

Author Closing Comment

by:stevetheski
ID: 39043341
i asked for the impossible :)
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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
Suggested Courses

770 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