Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 43968 invoked by uid 500); 30 Nov 2001 08:58:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 43957 invoked from network); 30 Nov 2001 08:58:57 -0000 Received: from bull.bourse.ch (HELO bull1.bourse.ch) (194.158.1.1) by daedalus.apache.org with SMTP; 30 Nov 2001 08:58:57 -0000 Received: (from nobody@localhost) by bull1.bourse.ch (8.8.8+Sun/8.8.8) id JAA12730 for ; Fri, 30 Nov 2001 09:59:06 +0100 (MET) X-Authentication-Warning: bull1.bourse.ch: nobody set sender to using -f Received: from trifid2(172.20.196.132) by bull1 via smap (V2.1) id xma012702; Fri, 30 Nov 01 09:59:01 +0100 Received: from regulus.bourse.ch (regulus [172.20.196.148]) by trifid2.bourse.ch (8.8.8+Sun/8.8.8) with ESMTP id JAA10475 for ; Fri, 30 Nov 2001 09:59:00 +0100 (MET) Received: from bourse.ch (localhost [127.0.0.1]) by regulus.bourse.ch (8.9.3+Sun/8.9.3) with ESMTP id JAA19738 for ; Fri, 30 Nov 2001 09:58:59 +0100 (MET) Sender: obo@bourse.ch Message-ID: <3C074A53.CFA20649@bourse.ch> Date: Fri, 30 Nov 2001 09:58:59 +0100 From: Owen Boyle X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: Drop port and hide multiple servers behind one fixed address? References: <3c070eca.1454.0@clear.net.nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Matthew Hook wrote: > > Thanks Joshua, > > I've just had a look through the name based virtual > hosting and I'm not certain this is what I want or not. > > To simplify things a bit what I want is the > following. Lets say I have two physical servers > behind a firewall. On the first is apache. > On the second is MS IIS. They are accessable > using the following URL's > > http://www.domain > http://www.otherdomain:8001 > > Server one has an IP Address of 192.168.2.1 > Server two has an IP address of 192.168.2.2 > > These reside behind a firewall in a DMZ. > The address of the firewall is 10.10.10.10 > > The redirection currently looks like this: > 10.10.10.10:80 -> 192.168.2.1:80 > 10.10.10.10:8001 -> 192.168.2.2:80 > > What I'd like to be able to do is allow someone > who points their browser to http://www.otherdomain > to not reach www.domain but www.otherdomain > At the moment you have to specify www.otherdomain:8001 to reach the other domain. > > How would I configure apache to do this? > Can I do it without the current port redirection? Are you saying that "www.domain" and "www.otherdomain" are external and both resolve to 10.10.10.10? If so, the only way to distinguish them is by the "Host:" header information. Rather than rewriting, you need to run an instance of apache as a Proxy on the FW (10.10.10.10). I've not used mod_proxy myself, but it seems quite easy - you'd set up two virtualhosts on the proxy-server and use the ProxyPass directive. Something like: NameVirtualhost 10.10.10.10:80 ServerName www.domain ProxyPass / http://192.168.2.1:80/ ServerName www.otherdomain ProxyPass / http://192.168.2.2:80/ Check the mod_proxy docs for details. Anyone else care to comment if this is right? Rgds, Owen Boyle. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org