Solved

reverse proxy and "real time" applications

Posted on 2004-08-09
4
277 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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