Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 29077 invoked from network); 17 Oct 2009 08:21:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Oct 2009 08:21:15 -0000 Received: (qmail 39280 invoked by uid 500); 17 Oct 2009 08:21:11 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39231 invoked by uid 500); 17 Oct 2009 08:21:11 -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 39222 invoked by uid 99); 17 Oct 2009 08:21:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 08:21:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,IP_LINK_PLUS,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of icicimov@gmail.com designates 209.85.211.174 as permitted sender) Received: from [209.85.211.174] (HELO mail-yw0-f174.google.com) (209.85.211.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 08:21:01 +0000 Received: by ywh4 with SMTP id 4so800305ywh.10 for ; Sat, 17 Oct 2009 01:20:40 -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; bh=AKv7HqcNgzqXTjlzW7J+Wt8I0qP3/9CFITGb6PyWYdo=; b=vSdxSuycnv00C0HnkNavFS9RZX5aWqJNFJQP9IfjaH5dweSKVKu4hK9yig+AqJteaA yFRZ6BHi0PhodbCcDc9RnHvRU6ybvlbkmt7Cr63VAOrurb5pLZ7QYvra9xhzmuUtUz6x XUFG1an0EJ98w7//muFsFL50y5WAsJ3TgmyJM= 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; b=MPYLFKJ2EpQrakUs25Jluwg3Apkgm19M8f8Uuwbx3M5pnlp/2op46W1PtVh6AlDaq+ m/QTYbhyjuaW95/EH/jvS9w9/DVuTBryys3NmYEs8MSpkj4RAmJeyv4d4IeNq2mjVEoJ MiSxKvf14X7Bwa2hg7uB877uKinitfZ8ylT1I= MIME-Version: 1.0 Received: by 10.150.233.5 with SMTP id f5mr4297224ybh.309.1255767640511; Sat, 17 Oct 2009 01:20:40 -0700 (PDT) In-Reply-To: <25902085.post@talk.nabble.com> References: <25899379.post@talk.nabble.com> <2d57c6570910141659r7cc99683nef5d359de5ad15ab@mail.gmail.com> <25902085.post@talk.nabble.com> Date: Sat, 17 Oct 2009 18:20:40 +1000 Message-ID: From: Igor Cicimov To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=000e0cd6d12e2216e304761d30f6 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How to configure Apache 2.2.8 to act as reverse proxy? --000e0cd6d12e2216e304761d30f6 Content-Type: text/plain; charset=ISO-8859-1 It is third party module you need to download the source and compile and install it using apxs as external loadable module. By the way you can do without it since you have mod_proxy already included in the apache. For reverse proxy you need to switch ProxyRequest to off. Example ProxyRequest Off ProxyPass /app1 http://example.com/app1 ProxyPassReverse /app1 http://example.com/app1 Igor On Thu, Oct 15, 2009 at 12:14 PM, Ted Byers wrote: > > Yes, that is what I was looking for, but there is a problem in that it is > not > distributed with either IndigoPerl or any of the other Windows binary > distributions (somewhat older) I use. I have three different binary > distributions of Apache 2 (one as old as 2.0, and others as recent as > 2.2.8), and none have mod_proxy_html or the other the modules the > mod_proxy_html documentation mentions. > > Is there a binary distribution for them, for Windows, that would be > compatible with the different distributions at least consistent at the > major > version level? > > Thanks > > Ted > > > Devraj Mukherjee-3 wrote: > > > > Hi Ted, > > > > You might be looking for mod_proxy_html > > http://apache.webthing.com/mod_proxy_html/ > > > > See if that helps. > > > > On Thu, Oct 15, 2009 at 8:28 AM, Ted Byers > wrote: > >> > >> This ought to be a FAQ, but I haven't found it yet. > >> > >> Please be patient with my as I am out of my element (I develop software, > >> and > >> I don't normally administer servers of any sort). I need a simple set > up > >> so > >> I can write and test code that handles the VIA HTTP header. > >> > >> If I've understood the documentation I've found so far, this would be a > >> reverse proxy. > >> > >> The server on which this would be most useful is running IndigoPerl. > >> Alas, > >> the examples I found so far for configuring a proxy refer to modules not > >> shipped in the Indigoperl distribution. I do not have a set up where I > >> can > >> build Apache, and don't want to build it if I can avoid it. It has > >> several > >> proxy modules (mod_proxy.so, mod_proxy_ftp.so, mod_proxy_http.so, &c.) > >> but > >> apparently not the ones that rewrite links to pages on the httpd server > >> that > >> is hidden from the outside world by the firewall. > >> > >> I have two machines with non-routable IP addresses behind a firewall. > >> The > >> router is configured to send requests on port 80 to one of the two > >> machines. > >> I have a fixed IP address from my ISP, but I do not have a domain name. > >> > >> Let's say my two machines have the IP addresses 192.168.2.1 and > >> 192.168.2.2, > >> and the latter has my fixed IP address: x1.x2.x3.x4. How do I tell the > >> apache server on the latter that requests come in to x1.x2.x3.x4 are to > >> be > >> served from the local htdocs directory and that those coming in on > >> x1.x2.x3.x4/the_other_website are to be obtained from 192.168.2.1? That > >> is > >> x1.x2.x3.x4/the_other_website/cgi-bin maps to 192.168.2.1/cgi-bin (and > >> that > >> any links on any page on either machine of the form > >> http://192.168.2.1/yyyy > >> are handled correctly rather than giving the user an error message). > >> > >> I have found that a link like 192.168.2.1/cgi-bin on a page in > >> 192.168.2.2/htdocs works fine when logged on to 192.168.2.2, but it > gives > >> an > >> error from a machine outside the LAN indicating the page doesn't exist > >> (and > >> I know that is because there is no such IP address in the LAN that > >> includes > >> the machine I used to test this). > >> > >> Can you please provide me with an URL that tells me the absolute > minimum, > >> in > >> terms of modules and directives in the configuration file, to get this > >> working so I can get on with writing the code to process the VIA HTTP > >> headers? Or failing that, tell me the bare minimum I need in modules > and > >> directives, to get this working? > >> > >> Thanks > >> > >> Ted > >> -- > >> View this message in context: > >> > http://www.nabble.com/How-to-configure-Apache-2.2.8-to-act-as-reverse-proxy--tp25899379p25899379.html > >> Sent from the Apache HTTP Server - Users mailing list archive at > >> Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> 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 secret impresses no-one, the trick you use it for is everything" > > - Alfred Borden (The Prestiege) > > > > --------------------------------------------------------------------- > > 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 > > > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-configure-Apache-2.2.8-to-act-as-reverse-proxy--tp25899379p25902085.html > Sent from the Apache HTTP Server - Users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > 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 > > --000e0cd6d12e2216e304761d30f6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It is third party module you need to download the source and compile and in= stall it using apxs as external loadable module.

By the way you can = do without it since you have mod_proxy already included in the apache. For = reverse proxy you need to switch ProxyRequest to off. Example

ProxyRequest Off
ProxyPass /app1 http://example.com/app1
ProxyPassReverse /app1 http://example.com/app1


Igor

On Thu, Oct 15, 2009 at 12:14 PM, Ted Byers <r.ted.byers@gmail.com> wrot= e:

Yes, that is what I was looking for, but there is a problem in that it is n= ot
distributed with either IndigoPerl or any of the other Windows binary
distributions (somewhat older) I use. =A0I have three different binary
distributions of Apache 2 (one as old as 2.0, and others as recent as
2.2.8), and none have mod_proxy_html or the other the modules the
mod_proxy_html documentation mentions.

Is there a binary distribution for them, for Windows, that would be
compatible with the different distributions at least consistent at the majo= r
version level?

Thanks

Ted


Devraj Mukherjee-3 wrote:
>
> Hi Ted,
>
> You might be looking for mod_proxy_html
> http://apache.webthing.com/mod_proxy_html/
>
> See if that helps.
>
> On Thu, Oct 15, 2009 at 8:28 AM, Ted Byers <r.ted.byers@gmail.com> wrote:
>>
>> This ought to be a FAQ, but I haven't found it yet.
>>
>> Please be patient with my as I am out of my element (I develop sof= tware,
>> and
>> I don't normally administer servers of any sort). =A0I need a = simple set up
>> so
>> I can write and test code that handles the VIA HTTP header.
>>
>> If I've understood the documentation I've found so far, th= is would be a
>> reverse proxy.
>>
>> The server on which this would be most useful is running IndigoPer= l.
>> =A0Alas,
>> the examples I found so far for configuring a proxy refer to modul= es not
>> shipped in the Indigoperl distribution. =A0I do not have a set up = where I
>> can
>> build Apache, and don't want to build it if I can avoid it. = =A0It has
>> several
>> proxy modules (mod_proxy.so, mod_proxy_ftp.so, mod_proxy_http.so, = &c.)
>> but
>> apparently not the ones that rewrite links to pages on the httpd s= erver
>> that
>> is hidden from the outside world by the firewall.
>>
>> I have two machines with non-routable IP addresses behind a firewa= ll.
>> =A0The
>> router is configured to send requests on port 80 to one of the two=
>> machines.
>> I have a fixed IP address from my ISP, but I do not have a domain = name.
>>
>> Let's say my two machines have the IP addresses 192.168.2.1 an= d
>> 192.168.2.2,
>> and the latter has my fixed IP address: x1.x2.x3.x4. =A0How do I t= ell the
>> apache server on the latter that requests come in to x1.x2.x3.x4 a= re to
>> be
>> served from the local htdocs directory and that those coming in on=
>> x1.x2.x3.x4/the_other_website are to be obtained from 192.168.2.1?= =A0That
>> is
>> x1.x2.x3.x4/the_other_website/cgi-bin maps to 192.168.2.1/cgi-bin (and
>> that
>> any links on any page on either machine of the form
>> http://192.1= 68.2.1/yyyy
>> are handled correctly rather than giving the user an error message= ).
>>
>> I have found that a link like 192.168.2.1/cgi-bin on a page in
>> 192.168.2.= 2/htdocs works fine when logged on to 192.168.2.2, but it gives
>> an
>> error from a machine outside the LAN indicating the page doesn'= ;t exist
>> (and
>> I know that is because there is no such IP address in the LAN that=
>> includes
>> the machine I used to test this).
>>
>> Can you please provide me with an URL that tells me the absolute m= inimum,
>> in
>> terms of modules and directives in the configuration file, to get = this
>> working so I can get on with writing the code to process the VIA H= TTP
>> headers? =A0Or failing that, tell me the bare minimum I need in mo= dules and
>> directives, to get this working?
>>
>> Thanks
>>
>> Ted
>> --
>> View this message in context:
>> http://ww= w.nabble.com/How-to-configure-Apache-2.2.8-to-act-as-reverse-proxy--tp25899= 379p25899379.html
>> Sent from the Apache HTTP Server - Users mailing list archive at >> Nabble.com.
>>
>>
>> ------------------------------------------------------------------= ---
>> The official User-To-User support forum of the Apache HTTP Server<= br> >> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info= .
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> --
> "The secret impresses no-one, the trick you use it for is everyth= ing"
> - Alfred Borden (The Prestiege)
>
> ---------------------------------------------------------------------<= br> > The official User-To-User support forum of the Apache HTTP Server Proj= ect.
> See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

--
View this message in context: http://www.nabble.com/How-to-configure-Apache-2.2.8-to-act-as-r= everse-proxy--tp25899379p25902085.html
Sent from the Apache HTTP Server -= Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.<= br> See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--000e0cd6d12e2216e304761d30f6--