Solved

reverse proxy and "real time" applications

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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