You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aruna Gummalla <ar...@yahoo.com> on 2009/11/25 01:30:36 UTC

[users@httpd] 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.



      

Re: [users@httpd] ProxyPass - mod_proxy

Posted by Eric Covener <co...@gmail.com>.
On Wed, Nov 25, 2009 at 12:51 PM, Aruna Gummalla
<ar...@yahoo.com>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@gmail.com

Re: [users@httpd] ProxyPass - mod_proxy

Posted by Aruna Gummalla <ar...@yahoo.com>.
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 <te...@googlemail.com> wrote:

From: Tom Evans <te...@googlemail.com>
Subject: Re: [users@httpd] ProxyPass - mod_proxy
To: users@httpd.apache.org
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




      

Re: [users@httpd] ProxyPass - mod_proxy

Posted by Tom Evans <te...@googlemail.com>.
"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

Re: [users@httpd] ProxyPass - mod_proxy

Posted by Aruna Gummalla <ar...@yahoo.com>.
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...@ice-sa.com> wrote:

From: André Warnier <aw...@ice-sa.com>
Subject: Re: [users@httpd] ProxyPass - mod_proxy
To: users@httpd.apache.org
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@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] ProxyPass - mod_proxy

Posted by André Warnier <aw...@ice-sa.com>.
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@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] ProxyPass - mod_proxy

Posted by Aruna Gummalla <ar...@yahoo.com>.
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...@ice-sa.com> wrote:

From: André Warnier <aw...@ice-sa.com>
Subject: Re: [users@httpd] ProxyPass - mod_proxy
To: users@httpd.apache.org
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@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] ProxyPass - mod_proxy

Posted by André Warnier <aw...@ice-sa.com>.
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org