• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

reverse proxy and "real time" applications

I have a bunch of (intranet) web applications which are running behind an apache reverse proxy (PoxyPass / ProxyPassReverse), this is done purely as a handy abstraction - security, Apache performance or any other such thing doesn't really play into this (they are long running / resource intensive scripts with relatively few requests).

The problem that I am having is that for some of these applications I like to keep the HTTP connection open for extended periods of time to continuosly provide updates (counters, progress bars, that sort of thing) for the entire duration of the process, which can be hours in some cases.

When I try this through the proxy, it waits until it gets the entire response before sending it to the client (and many cases times out).

Any ideas on an approach to fixing this?
0
_D_
Asked:
_D_
  • 2
1 Solution
 
samriCommented:
hi _D_,

How do you configure the apache, and the proxy/proxypass directive for the backend server.  Did you have one mainserver and have multiple proxy/proxypass directive for the few intranets, such that.

Proxy /inttranet1 http://192.168.1.1/
ProxyPass /inttranet1 http://192.168.1.1/

Proxy /inttranet2 http://192.168.1.2/
ProxyPass /inttranet2 http://192.168.1.2/

Proxy /inttranet3 http://192.168.1.3/
ProxyPass /inttranet3 http://192.168.1.3/

etc.

OR. Do you configure your apache to have multiple VHost, and define proxy directive for the respective

In either case, you could take a look at KeepAlive directive- http://httpd.apache.org/docs-2.0/mod/core.html#keepalive

However, this would affect the performance, since increasing the keepalive to 1day for example will cause apache processes to grow.  I would advise to take the 2nd approach (using vhost) where you increase the timout only to those intranet apps that require the "special" setting.

cheers.
0
 
samriCommented:
i am sorry -- it is KeepAliveTimeout - http://httpd.apache.org/docs-2.0/mod/core.html#keepalivetimeout

:)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now