apache_to_apache Proxy error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi dears.
I am facing a random but very boring proxy error. The environment is the 
following:

In the front-end (actually a customer CED):
               ProxyPass /webapp
               ProxyPass /static
Ap2.0.59<----------------------------->|FW|<---Internet


In the back-end (actually our CED):
                                              ProxyPass /webapp
Internet--->|FW|<--->Ap2.2.8<---------------------------->tomcat 5.5

where Ap is an apache server and FW is a firewall, static is a folder with 
static html content and webapp is a servlet running on the final tomcat 
instance.


Randomly, when I connect to the front-end apache (2.0.59) and hask for /static 
or /webapp, I get a proxy error:

502:  proxy: error reading status line from remote server **.**.**.**, 
referer:......

This happens both during normal operation and after long idle periods, and 
both for static content and for the tomcat webapp. So I think it is a problem 
of the two apaches
Now I am suggesting to the front-end system administrator (the 2.0 Apache) to 
disable the keepalive with the following setenv directive, something like:

<Location /static>
	ProxyPass .....
	ProxyPassReverse ....
	SetEnv force-proxy-request-1.0 1
	SetEnv proxy-nokeepalive 1
</Location>

<Location /webapp>
	ProxyPass .....
	ProxyPassReverse ....
	SetEnv force-proxy-request-1.0 1
	SetEnv proxy-nokeepalive 1
</Location>

but I have a doubt about tomcat. Should I disable keepalive and HTTP 1.1 on 
the tomcat too?
As far as I can understand if I put that setenv directives, everything running 
from the client to the tomcat is HTTP 1.0 with no keepalive... I am right?

Is there a way to disable keepalive ONLY between the two apache?

Thank you very much


-- 
Matteo Vadagnini
h-care s.r.l.
www.h-care.it
Via Sile 51
31056 - Roncade (TV)
+39 0422 789611
+39 331 6645021


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux