Re: how to configure host headers for 3 IIS machines ?

From: scott (scottscotland_at_yahoo.com)
Date: 03/05/04


Date: Fri, 5 Mar 2004 12:43:45 -0000

Hi,

That is a fantastic help thanks. I understand.

The problem with using host headers to direct to an IP and port (or even
direct domain:port) is a customer will need to have the port open outgoing
on there firewall I guess. Which may cause an occasional problem if blocked.

Will look into the reverse proxy's before deciding.

Thanks for your time.
Scott.

> Hello,
>
> If you only have one public IP, this will not work with IIS only.
>
> IIS can:
> 1) Host multiple websites on one machine, and distinguish them with a host
> header
> 2) Redirect to another webserver, based on a host header
>
> IIS cannot:
> 1) Act as a reverse proxy
>
> And what you are asking for is a reverse proxy.
>
> Let me explain. IIS1 is the "main" server, and accepts all traffic. Then,
> based on the host header, it will redirect the request to another internal
> webserver. The problem here is that IIS can only redirect. So, you will
have
> to write the internal IP in the "redirec to" text box. The web client
> (internet explorer) will then make a "new request" to this new webserver.
> So, if the IP of the internal webserver was 192.168.0.10, it will try to
> connect to IP 192.168.0.10, which will of course not work (private IPs are
> not routable).
>
> There are a few ways to solve this.
>
> 1) Redirect to the public IP, but another port, and then in the firewall,
> forward this port to one of the other web servers.
> 2) Use a third-party application, acting as a reverse proxy. For example
> OctaGate http://www.octagate.com/HTTPRedirect.asp or Apache
> http://www.apacheweek.com/features/reverseproxies Note: Apache can of
> course act as a reverse proxy for IIS Web Servers.
>
>
> So, if we go back to your suggestions:
>
> 1) Yes, this is possible. As i also told you, the "main" server can be
> configured to redirect to another port, so your customers do not have to
> remember the port.
>
> 2) Using host headers, without including the external IP and another port
is
> not possible. The client machine (not on your network), do not know how to
> connect to another webserver inside your firewall, if there is no open
> connection between that webserver and the client. This is what a reverse
> proxy solves. And unfortunately, IIS cannot act as a reverse proxy :-(
>
>
> --
> Regards,
> Kristofer Gafvert - IIS MVP
> Reply to newsgroup only. Remove NEWS if you must reply by email, but
please
> do not.
> www.ilopia.com - FAQ and Tutorials for Windows Server 2003
>
>
> "scott" <scottscotland@yahoo.com> wrote in message
> news:uZyy5SqAEHA.2808@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > I posted about this before but not sure if i fully followed.
> >
> > Im looking to run three IIS machines on the same public IP.
> >
> > IIS1 = used to deal with http traffic using host headers.
> > IIS2 = 2003 sharepoint windows services = www.domain2.com
> > IIS3 = w2k sharepoint team services = www.domain2.com
> >
> > NOTE: cant run on same machine.
> >
> > As far as im aware the only way i can do this is.
> >
> > 1. publishing IIS machines on a non standard port ie.
www.domain.com:port
> > OR
> > 2. using host headers i can keep all machines on port 80. Host header
> would
> > then redirect user to appropriate machines.
> >
> > If my network was setup like this:
> >
> > -----------------------------------
> > net
> > v
> > router > iis1 > router > iis2
> > v v
> > fw iis3
> > v
> > lan
> > -------------------------------
> >
> > 1. If host headers were configured on IIS1 could i plug in as many IIS
> > machines behind it as I like ?
> >
> > 2. How would I configure host headers to deal with this setup ?
> >
> > For example: I enter www.domain2.com in a browser, im directed to my
IP,
> > IIS1 says its domain2 and uses host headers to push traffic to IIS2 ?
> >
> > NOTE: assumes IE6 with domain info in header.
> >
> > Thanks for your time and help.
> > Scott
> >
> >
>
>



Relevant Pages

  • Re: Authentication Problems
    ... though you will either need to use host headers ... need to use different port numbers for the SSL parts of each web site. ... www.iisfaq.com is a great resource for most common IIS questions. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Additional OWA Sites
    ... Are you using the same IP address and same port? ... Problem with host headers approach is it doesn't work with SSL. ... > I've tried closing ESM and re-opening, restarting IIS, restarting Exchange ...
    (microsoft.public.exchange.setup)
  • Re: SSL only
    ... Create a new site is IIS add the host header for the current site on port 80. ... In IIS there is the option to have the site redirect to a different site. ... Any ideas on how I can redirect them to 443 first and THEN prompt for credentials? ...
    (microsoft.public.sharepoint.portalserver)
  • Re: SSL only
    ... Create a new site is IIS add the host header for the current site on port 80. ... In IIS there is the option to have the site redirect to a different site. ... Any ideas on how I can redirect them to 443 first and THEN prompt for credentials? ...
    (microsoft.public.sharepoint.portalserver)
  • Re: How do you change the port a Web Application is running on in V3
    ... then restart IIS and then start the WEB again. ... port of 80 (yes, I will be using host headers to access it). ... I have changed the Site Properties under IIS, so that its TCP port is ...
    (microsoft.public.sharepoint.windowsservices)