Solved

reverse proxy and "real time" applications

Posted on 2004-08-09
4
268 Views
Last Modified: 2010-03-04
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
Comment
Question by:_D_
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
samri earned 500 total points
ID: 11799022
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
 
LVL 15

Expert Comment

by:samri
ID: 11799023
i am sorry -- it is KeepAliveTimeout - http://httpd.apache.org/docs-2.0/mod/core.html#keepalivetimeout

:)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now