[Last Call] Learn how to a build a cloud-first strategyRegister Now


IIS7 host headers through load balancer multiple ip addresses

Posted on 2012-04-02
Medium Priority
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
Question by:stevetheski
  • 3
LVL 11

Expert Comment

by:Sanjay Santoki
ID: 37800814

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

Sanjay Santoki

Author Comment

ID: 37809433
i tried that but it does not work
I believe it is due t the virtual ip from the load balancer

Accepted Solution

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

Author Closing Comment

ID: 39043341
i asked for the impossible :)

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…
Suggested Courses

834 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