httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] How to configure Apache 2.2.8 to act as reverse proxy?
Date Sat, 17 Oct 2009 08:20:40 GMT
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 <r.ted.byers@gmail.com> 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 <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 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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
>
>

Mime
View raw message