You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ricardo13 <ri...@gmail.com> on 2009/05/22 20:02:01 UTC
[users@httpd] How I configure Reverse Proxy using ??
Hi,
I configured reverse proxy using directives ProxyPass, ProxyPassReverse,
etc...
For example in httpd.conf
ProxyPass /new1 http://192.168.1.2
ProxyPassReverse /new1 http://192.168.1.2
ProxyPass /new2 http://192.168.1.3
ProxyPassReverse /new2 http://192.168.1.3
Now, I would like to configure Reverse Proxy using <Location>
How I do it ??
Thank You
Ricardo
--
View this message in context: http://www.nabble.com/How-I-configure-Reverse-Proxy-using-%3CLocation%3E----tp23675403p23675403.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
Re: [users@httpd] How I configure Reverse Proxy using ??
Posted by ricardo figueiredo <ri...@gmail.com>.
ok !!! Perfect Eric !!!!
Thank you very much !!!!!
It was great help !!!!
Ricardo
On Sat, May 23, 2009 at 2:51 PM, Eric Covener <co...@gmail.com> wrote:
> On Sat, May 23, 2009 at 1:36 PM, ricardo figueiredo
> <ri...@gmail.com> wrote:
> > Hi,
> >
> > Thank you !!! good explanation ! Now, I know
> >
> > How I use the output external program in RewriteMap to ProxyPassReverse
> ??
> > For example:
> >
> > The output of external program (in C) is /cluster2
> > RewriteMap prgmap prg:externalProgram
> > RewriteRule ^(.*) ${prgmap:1}
> >
> > Then, there is directive ProxyPass that forward requests to server, like
> as
> > ProxyPass /cluster2 http://192.168.1.12
> > ProxyPassReverse /cluster2 http://192.168.1.12
> >
> > But, it isn't happen !!! ProxyPassReverse doesn't get the output of
> external
> > program !!!
> >
>
> [PT] flag probably helps, since ProxyPass cares about URLs, not the
> translated path.
>
>
> --
> Eric Covener
> covener@gmail.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
>
>
--
Muito Obrigado
Ricardo
Re: [users@httpd] How I configure Reverse Proxy using ??
Posted by Eric Covener <co...@gmail.com>.
On Sat, May 23, 2009 at 1:36 PM, ricardo figueiredo
<ri...@gmail.com> wrote:
> Hi,
>
> Thank you !!! good explanation ! Now, I know
>
> How I use the output external program in RewriteMap to ProxyPassReverse ??
> For example:
>
> The output of external program (in C) is /cluster2
> RewriteMap prgmap prg:externalProgram
> RewriteRule ^(.*) ${prgmap:1}
>
> Then, there is directive ProxyPass that forward requests to server, like as
> ProxyPass /cluster2 http://192.168.1.12
> ProxyPassReverse /cluster2 http://192.168.1.12
>
> But, it isn't happen !!! ProxyPassReverse doesn't get the output of external
> program !!!
>
[PT] flag probably helps, since ProxyPass cares about URLs, not the
translated path.
--
Eric Covener
covener@gmail.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
Re: [users@httpd] How I configure Reverse Proxy using ??
Posted by ricardo figueiredo <ri...@gmail.com>.
Hi,
Thank you !!! good explanation ! Now, I know
How I use the output external program in RewriteMap to ProxyPassReverse ??
For example:
The output of external program (in C) is /cluster2
RewriteMap prgmap prg:externalProgram
RewriteRule ^(.*) ${prgmap:1}
Then, there is directive ProxyPass that forward requests to server, like as
ProxyPass /cluster2 http://192.168.1.12
ProxyPassReverse /cluster2 http://192.168.1.12
But, it isn't happen !!! ProxyPassReverse doesn't get the output of external
program !!!
Thank you
Ricardo
On Fri, May 22, 2009 at 11:27 PM, Eric Covener <co...@gmail.com> wrote:
> On Fri, May 22, 2009 at 2:02 PM, ricardo13 <ri...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I configured reverse proxy using directives ProxyPass, ProxyPassReverse,
> > Now, I would like to configure Reverse Proxy using <Location>
> > How I do it ??
>
> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
>
> | When used inside a <Location> section, the first argument is omitted
> and the local directory is obtained from the <Location>.
>
> There's nothing more elaborate than that.
>
> --
> Eric Covener
> covener@gmail.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
>
>
--
Muito Obrigado
Ricardo
Re: [users@httpd] How I configure Reverse Proxy using ??
Posted by Eric Covener <co...@gmail.com>.
On Fri, May 22, 2009 at 2:02 PM, ricardo13 <ri...@gmail.com> wrote:
>
> Hi,
>
> I configured reverse proxy using directives ProxyPass, ProxyPassReverse,
> Now, I would like to configure Reverse Proxy using <Location>
> How I do it ??
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
| When used inside a <Location> section, the first argument is omitted
and the local directory is obtained from the <Location>.
There's nothing more elaborate than that.
--
Eric Covener
covener@gmail.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