Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 96843 invoked from network); 25 Jan 2006 15:51:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 15:51:54 -0000 Received: (qmail 27656 invoked by uid 500); 25 Jan 2006 15:51:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27647 invoked by uid 500); 25 Jan 2006 15:51:42 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 27636 invoked by uid 99); 25 Jan 2006 15:51:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 07:51:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of wolever.lists@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 07:51:40 -0800 Received: by xproxy.gmail.com with SMTP id s8so92354wxc for ; Wed, 25 Jan 2006 07:51:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K5f8RSuulWaiBGScJBURkyNTuzRkc11K+RosYSXXUdLk3MBYt+dV1sDp8ynuotBqPCXCwQcGyY/XBH46koEGVbmwzalEBnuvoy29rHaQ/q7jPFhJHflngdQLsSkLSx+b2KRdpsgBs0xrSL0e+5Xe6WIfoEkdtC1gcDbgjyMQqhc= Received: by 10.70.17.13 with SMTP id 13mr945546wxq; Wed, 25 Jan 2006 07:51:18 -0800 (PST) Received: by 10.70.36.16 with HTTP; Wed, 25 Jan 2006 07:51:17 -0800 (PST) Message-ID: <1c33a90a0601250751r3a67328ftd70b406ca6a4e7a1@mail.gmail.com> Date: Wed, 25 Jan 2006 10:51:17 -0500 From: David Wolever Reply-To: david@wolever.net To: users@httpd.apache.org In-Reply-To: <43D717E4.5010201@univ-reunion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43D717E4.5010201@univ-reunion.fr> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How to execute cgi on a proxied host ? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I think I've done exactly this with one of my web pages... It does not use vhosts, but a (probably un-holy) mix of mod_rewrite and mod_proxy. This is on Apache 1.3.33 ### # Forward requests for /fs/ to localhost:9090 ### ProxyPassReverse /fs http://${HTTP_HOST}:9090/fs RewriteEngine On RewriteCond %{HTTP_HOST} fs.host.ca [NC] RewriteRule ^/(.*) http://host.ca:9090/%{REQUEST_URI} [P] RewriteCond %{REQUEST_URI} /fs.* [NC] RewriteRule ^/(.*) http://%{HTTP_HOST}:9090/$1 [P] Of coarse, you could change localhost:9090 to any host the server has acces= s to. I hope this helps, David On 1/25/06, Annie Dumont wrote: > Hi everybody, > > One of our scientist has develop a website with cgi-script, on host with > a private adress. > He needs to be readable throught the internet next month. > Is it possible, throught a virtualHost and proxying to execute the cgi > scripts hosted on his machine ? > > On our apache server we have written in the vhost.conf : > (assuming for the example that our apache serveur ip adress is > 123.12.12.12 our distant host private ip adress 10.10.10.10 and the name > it becomes to bee seen through the internet > distant.machine.univ-reunion.fr) : > > > Servername distant.machine.univ-reunion.fr > ProxyPass / http://10.10.10.10 > ProxypassReverse / http://10.10.10.10 > > > How do i tell apache that cgi scripts i want to execute are not those on > the apache server but those on the 10.10.10.10 ? Is it just possible ? > > regards, annie > > --------------------------------------------------------------------- > 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 > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- 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 " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org