Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 57329 invoked from network); 12 Aug 2009 16:19:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 16:19:32 -0000 Received: (qmail 2695 invoked by uid 500); 12 Aug 2009 16:18:33 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 99198 invoked by uid 500); 12 Aug 2009 16:18:26 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 97716 invoked by uid 99); 12 Aug 2009 16:13:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 16:13:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jorge.schrauwen@gmail.com designates 72.14.220.158 as permitted sender) Received: from [72.14.220.158] (HELO fg-out-1718.google.com) (72.14.220.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 16:13:19 +0000 Received: by fg-out-1718.google.com with SMTP id e12so829090fga.17 for ; Wed, 12 Aug 2009 09:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kSWDS4hBxiz03gTXlaIb9LwYJBQkSvEaVq4Rabz2cMQ=; b=fcT7iDIvpmyiu8UW6ngApeoRdpyoHWGtu2Z4Ig84JugdkSVyjiQjqWe5nohwVojxj2 HRXanlg8jr7db5wCWfZHmKaq0TG+dBPcB33t380wyZAJPfOs27T4t8uTqrMscP/Zzc3W z3c3r6i7ufYnvrIRAxCKHocqlobW7TUs7ZS4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=LyhGaV7eqbO3SLY2zSqZ8o9GY9r594uB+QjsrLSs2otmwMFBk4B/1hNfoy0xPyr9ni Try0M5Cs4mVTunLf6p+wI2ZdW7nUn3xbheTrEEoUiiLlAbkXZm0YEhffqu/Z18Sj+94N i/J6j70lRInhiqCqGOkjoczyN8jp8x7M+KV4c= MIME-Version: 1.0 Received: by 10.86.23.19 with SMTP id 19mr214985fgw.50.1250093578172; Wed, 12 Aug 2009 09:12:58 -0700 (PDT) In-Reply-To: <24939564.post@talk.nabble.com> References: <24939564.post@talk.nabble.com> Date: Wed, 12 Aug 2009 18:12:58 +0200 Message-ID: <43e40e000908120912o67f8eedcjda76946ac486da18@mail.gmail.com> Subject: Re: A single IP address and Domain name serving many servers From: Jorge Schrauwen To: dev@httpd.apache.org, users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You can do this with mod proxy. # Proxy Forwarding LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so ProxyRequests Off Order allow,deny Allow from all #forward /siteX to backend server ProxyPass /site1/ http://10.0.0.2/ ProxyPassReverse /site1/ http://10.0.0.2/ ProxyPass /site2/ http://10.0.0.3/ ProxyPassReverse /site2/ http://10.0.0.3/ Alternatively you can use sub-domains too if you have control over both dns and apache. site1.example.org ---> WAN IP --> LAN IP where apache does namevirtualhosting site2.example.org ---> ... Also support questions should go to users@httpd.apache.org and not dev@, this mailing list is for development related discussion. Jorge Schrauwen On Wed, Aug 12, 2009 at 6:01 PM, Branquim wrote: > > I want to know if its possible and how to do it... > > I have one valid ip address and one internet domain. > > What I want to do is: > - when a client access my domain with: www.mydomain.com on his web browser > he access my apache server apache1.localnetwork 10.0.0.1 (I already do this > through nat in iptables). > - when he types www.mydomain.com/site1 I serve him with another apache > server inside my local network (apache2.localnetwork 10.0.0.2). > - when he types www.mydomain.com/site2 he access another server > apache3.localnetwork 10.0.0.3. > > How can I do this redirection with the client passing me just another uri > and I serving him with different apache servers, having only an external ip > and domain name? > > Thanks. > -- > View this message in context: http://www.nabble.com/A-single-IP-address-and-Domain-name-serving-many-servers-tp24939564p24939564.html > Sent from the Apache HTTP Server - Dev mailing list archive at Nabble.com. > >