You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ari King <ar...@gmail.com> on 2010/11/08 17:50:07 UTC

[users@httpd] Httpd proxy of Tomcat instance continually timing out

Hi all,

I've configured httpd (version 2.2) to be a proxy for Tomcat (version
6.0.26) on a single CentOS (version 5 Final) server; unfortunately,
all requests via the proxy time out. If I bypass the proxy using the
full tomcat url, the expected data is returned.

Following are the proxy configurations I saved in the httpd.conf file.
I've checked both the httpd logs and tomcat logs for errors, but
neither have any errors. Anyone know what could be wrong?

ProxyPass /service http://xxx.xxx.xxx.xxx:8080/service
ProxyPassReverse /service http://xxx.xxx.xxx.xxx:8080/service

Thanks.

-Ari

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Ari King <ar...@gmail.com>.
> Did you allow port 80, or whatever other port you have httpd listening on?

Yes, I've allowed access on port 80 as well. In any event, I finally
got it working by power-cycling the network switch and rebooting the
server.

Thanks.

Best,
Ari

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Matt Iavarone <ma...@gmail.com>.
On Mon, Nov 8, 2010 at 12:54 PM, Ari King <ar...@gmail.com> wrote:
> On Mon, Nov 8, 2010 at 12:34 PM, Jim Riggs <ap...@riggs.me> wrote:
>> On Nov 8, 2010, at 10:50 AM, Ari King wrote:
>>
>>> I've configured httpd (version 2.2) to be a proxy for Tomcat (version
>>> 6.0.26) on a single CentOS (version 5 Final) server; unfortunately,
>>> all requests via the proxy time out. If I bypass the proxy using the
>>> full tomcat url, the expected data is returned.
>>>
>>> Following are the proxy configurations I saved in the httpd.conf file.
>>> I've checked both the httpd logs and tomcat logs for errors, but
>>> neither have any errors. Anyone know what could be wrong?
>>>
>>> ProxyPass /service http://xxx.xxx.xxx.xxx:8080/service
>>> ProxyPassReverse /service http://xxx.xxx.xxx.xxx:8080/service
>>
>> Are httpd and Tomcat running on the same box?  Are there firewall/iptables rules on the box(es) or somewhere between the boxes that are >denying httpd's requests to port 8080?
>
> Httpd and Tomcat are running on the same box and I've configured the
> iptables to allow requests on port 8080.
>
> The proxy works when request originate from the server itself. For
> example, from the server that has Httpd & Tomcat running if I traverse
> to http://localhost/service or http://xxx.xxx.xxx.xxx/service -- the
> proxy will work. However if I use any other computer on the network
> the proxy fails/times out.
>
> ---------------------------------------------------------------------
> 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
>
>

Did you allow port 80, or whatever other port you have httpd listening on?

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Ari King <ar...@gmail.com>.
On Mon, Nov 8, 2010 at 12:56 PM, Eric Covener <co...@gmail.com> wrote:
>> However if I use any other computer on the network
>> the proxy fails/times out.
>
> During what stage? what do the logs say? Does it only happen with a POST?


What do you mean 'stage'? The logs -- access_log, error_log, and
catalina.out -- say nothing; there are no errors in either httpd or
tomcat logs and the access_log only shows records of access attempts
from the server itself; no attempts from any other computer on the
network are in the access_log.
This is happening with both GET and POST requests to proxy.

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Eric Covener <co...@gmail.com>.
> However if I use any other computer on the network
> the proxy fails/times out.

During what stage? what do the logs say? Does it only happen with a POST?

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Ari King <ar...@gmail.com>.
On Mon, Nov 8, 2010 at 12:34 PM, Jim Riggs <ap...@riggs.me> wrote:
> On Nov 8, 2010, at 10:50 AM, Ari King wrote:
>
>> I've configured httpd (version 2.2) to be a proxy for Tomcat (version
>> 6.0.26) on a single CentOS (version 5 Final) server; unfortunately,
>> all requests via the proxy time out. If I bypass the proxy using the
>> full tomcat url, the expected data is returned.
>>
>> Following are the proxy configurations I saved in the httpd.conf file.
>> I've checked both the httpd logs and tomcat logs for errors, but
>> neither have any errors. Anyone know what could be wrong?
>>
>> ProxyPass /service http://xxx.xxx.xxx.xxx:8080/service
>> ProxyPassReverse /service http://xxx.xxx.xxx.xxx:8080/service
>
> Are httpd and Tomcat running on the same box?  Are there firewall/iptables rules on the box(es) or somewhere between the boxes that are >denying httpd's requests to port 8080?

Httpd and Tomcat are running on the same box and I've configured the
iptables to allow requests on port 8080.

The proxy works when request originate from the server itself. For
example, from the server that has Httpd & Tomcat running if I traverse
to http://localhost/service or http://xxx.xxx.xxx.xxx/service -- the
proxy will work. However if I use any other computer on the network
the proxy fails/times out.

---------------------------------------------------------------------
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] Httpd proxy of Tomcat instance continually timing out

Posted by Jim Riggs <ap...@riggs.me>.
On Nov 8, 2010, at 10:50 AM, Ari King wrote:

> I've configured httpd (version 2.2) to be a proxy for Tomcat (version
> 6.0.26) on a single CentOS (version 5 Final) server; unfortunately,
> all requests via the proxy time out. If I bypass the proxy using the
> full tomcat url, the expected data is returned.
> 
> Following are the proxy configurations I saved in the httpd.conf file.
> I've checked both the httpd logs and tomcat logs for errors, but
> neither have any errors. Anyone know what could be wrong?
> 
> ProxyPass /service http://xxx.xxx.xxx.xxx:8080/service
> ProxyPassReverse /service http://xxx.xxx.xxx.xxx:8080/service

Are httpd and Tomcat running on the same box?  Are there firewall/iptables rules on the box(es) or somewhere between the boxes that are denying httpd's requests to port 8080?


---------------------------------------------------------------------
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