Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ProxyPass - mod_proxy

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


aruna_gummalla at yahoo

Nov 24, 2009, 4:30 PM

Post #1 of 8 (729 views)
Permalink
ProxyPass - mod_proxy

Hi,

I am trying to configure mod_proxy. I want Apache to be the proxy server.
There is a client x which talks to Apache and Apache in turn passes on this request to other client y. The client y responds to Apache and in turn should send the response to client x.
Suppose, client y runs on port 9999

I configured the httpd.conf like this:

<IfModule mod_proxy.c>
ProxyRequests Off
</IfModule>

ProxyPass / http://localhost:9999/
ProxyPassReverse / http://localhost:9999/

But when the client x tries to connect client y thru Apache it doesnt not get a response. client x says No response from the server.

Can somebody please help me configure the httpd.

Thanks in advance.

Thanks & Regards,
Aruna.


aw at ice-sa

Nov 24, 2009, 4:40 PM

Post #2 of 8 (684 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

Aruna Gummalla wrote:
> Hi,
>
> I am trying to configure mod_proxy. I want Apache to be the proxy server.
> There is a client x which talks to Apache and Apache in turn passes on this request to other client y.

Taking you by the letter, that is not really what mod_proxy is supposed
to help you with. The "other client y" is supposed to be another HTTPd
server, not a client.



---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


aruna_gummalla at yahoo

Nov 24, 2009, 4:48 PM

Post #3 of 8 (679 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

client y is on the same host as apache.
only client x is on a different host.

Thanks & Regards,
Aruna.

--- On Wed, 11/25/09, André Warnier <aw [at] ice-sa> wrote:

From: André Warnier <aw [at] ice-sa>
Subject: Re: [users [at] http] ProxyPass - mod_proxy
To: users [at] httpd
Date: Wednesday, November 25, 2009, 6:10 AM

Aruna Gummalla wrote:
> Hi,
>
> I am trying to configure mod_proxy. I want Apache to be the proxy server.
> There is a client x which talks to Apache and Apache in turn passes on this request to other client y.

Taking you by the letter, that is not really what mod_proxy is supposed to help you with.  The "other client y" is supposed to be another HTTPd server, not a client.



---------------------------------------------------------------------
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 [at] httpd
  "   from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


aw at ice-sa

Nov 24, 2009, 4:53 PM

Post #4 of 8 (683 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

Aruna Gummalla wrote:
> client y is on the same host as apache.
> only client x is on a different host.
>
it does not matter. The point is that Apache will forward a HTTP
*request* to the "client y", and expect it to act like a HTTP server.
Unless your "client y" is really a HTTP server, it will not work.

And if your "client y" is really a HTTP server, then why don't you have
client x talk directly to client y ?


---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


aruna_gummalla at yahoo

Nov 25, 2009, 9:34 AM

Post #5 of 8 (661 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

client y is a http server but i dont want to expose client y to client x.

I am new to this Apache httpd server so I dont know whether it should be configured as a forward proxy or reverse proxy. Right now i am configuring it as reverse proxy but it doesnt work.

Please help.

Thanks & Regards,
Aruna.

--- On Wed, 11/25/09, André Warnier <aw [at] ice-sa> wrote:

From: André Warnier <aw [at] ice-sa>
Subject: Re: [users [at] http] ProxyPass - mod_proxy
To: users [at] httpd
Date: Wednesday, November 25, 2009, 6:23 AM

Aruna Gummalla wrote:
> client y is on the same host as apache. only client x is on a different host.
>
it does not matter. The point is that Apache will forward a HTTP *request* to the "client y", and expect it to act like a HTTP server.
Unless your "client y" is really a HTTP server, it will not work.

And if your "client y" is really a HTTP server, then why don't you have client x talk directly to client y ?


---------------------------------------------------------------------
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 [at] httpd
  "   from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


tevans.uk at googlemail

Nov 25, 2009, 9:40 AM

Post #6 of 8 (667 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

"It doesn't work" is useless. If you want help, explain what you tried, what
happens when you try that, and provide your configuration and logs.

Otherwise, the only response anyone can give is "It works just fine for me".

Cheers

Tom


aruna_gummalla at yahoo

Nov 25, 2009, 9:51 AM

Post #7 of 8 (670 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

This is what I am doing and an example of my configuration

I am trying to configure mod_proxy. I want Apache to be the proxy server.
There
is a client x which talks to Apache and Apache in turn passes on this
request to other client y. The client y responds to Apache and in turn
should send the response to client x.
Suppose, client y runs on port 9999 and client y and apache are on the same host.

I configured the httpd.conf like this:

<IfModule mod_proxy.c>
ProxyRequests Off
</IfModule>

ProxyPass / http://localhost:9999/
ProxyPassReverse / http://localhost:9999/

But
when the client x tries to connect client y thru Apache it doesnt not
get a response. client x says No response from the server.

Can somebody please help me configure the httpd.

I dont know whether i should configure this as forward or reverse proxy. Please help.

Thanks in advance.

Thanks & Regards,
Aruna.

--- On Wed, 11/25/09, Tom Evans <tevans.uk [at] googlemail> wrote:

From: Tom Evans <tevans.uk [at] googlemail>
Subject: Re: [users [at] http] ProxyPass - mod_proxy
To: users [at] httpd
Date: Wednesday, November 25, 2009, 11:10 PM

"It doesn't work" is useless. If you want help, explain what you tried, what happens when you try that, and provide your configuration and logs.

Otherwise, the only response anyone can give is "It works just fine for me".


Cheers

Tom


covener at gmail

Nov 26, 2009, 4:52 AM

Post #8 of 8 (650 views)
Permalink
Re: ProxyPass - mod_proxy [In reply to]

On Wed, Nov 25, 2009 at 12:51 PM, Aruna Gummalla
<aruna_gummalla [at] yahoo>wrote:

> This is what I am doing and an example of my configuration
>
>
> I am trying to configure mod_proxy. I want Apache to be the proxy server.
> There is a client x which talks to Apache and Apache in turn passes on this
> request to other client y. The client y responds to Apache and in turn
> should send the response to client x.
>


Stop calling "client y" a client if it's just the origin server. You just
want a basic reverse proxy and are overcomplicating it.

--
Eric Covener
covener [at] gmail

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.