Disable buffering in apache 2.0.59 during Reverse Proxy

Hi,

I have hosted an asp.net website in IIS which is working fine. I am creating a reverse proxy for this site using Apache 2.0.59. Below is my Virtual host configuration

<VirtualHost apacheserver:1234>
ProxyPass / http://webserver:1234/
ProxyPassReverse / http://webserver:1234/
ReplaceFilterDefine multiple CaseIgnore
ReplacePattern multiple "http://webserver:1234/" "http://apacheserver:1234/"
SetOutputFilter multiple
</VirtualHost>

My web page allows users to download files.
Here is the problem I am facing, When ever I download a file, apache buffers the entire file to the memory and once it is loaded in memory it starts the download.

The files that I serve are more than 1 GB, so once the user clicks the download he has to wait for quite a long time (around 4/5 mins) for the download to start. This site is going to be used extensively and so this behaviour is not acceptable.

I read that apache 2.2 has option to flush output. I tried IOBuffer size and request buffer size in apache 2.0.59 but neither helped. Can any one guide me on disabling buffering in apache 2.0

Thanks in advance
LVL 13
Toms EdisonTechnical ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Louis01Commented:
To flush:
 ... <!-- css, js -->
    </head>
    <?php flush(); ?>
    <body>
      ... <!-- content -->
0
Louis01Commented:
Try (in php.ini under [PHP])
output_buffering = Off

maybe also...
zlib.output_compression = Off
0
Toms EdisonTechnical ManagerAuthor Commented:
Louis01

thank you for the reply. But I am using ASP.NET not PHP so this solution will not work for me. My ASP.NET application is flushing the contents and it is working fine. Buffering is happening in apache. How to disable buffering in Apache?

Thanks
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Louis01Commented:
Sorry - did not notice. (Never used ASP.NET on apache though)

The web.config file allows for a "buffer=false" setting. Maybe it's worth a try?
See http://msdn.microsoft.com/en-us/library/950xf363.aspx

You could always try and use the following (top of aspx file)
<%@ Page Buffer="false"%>
0
Toms EdisonTechnical ManagerAuthor Commented:
Louis,

Thanks again. As I mentioned in my original question there is no issue in my ASP.NET site, it is the reverse proxy that is buffering. Please read the question.

Thanks
0
Louis01Commented:
Apologies if I frustrate you, but this issue interests me. In trying to understand, I found the following link. Perhaps it helps?
http://aspn.activestate.com/ASPN/CodeDoc/Apache-mod_perl_guide/src/scenario.html#Buffering%20Feature
0
Toms EdisonTechnical ManagerAuthor Commented:
Thanks Louis01, I read this before and this is exactly the problem I am facing now. How can I overcome this any ideas?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.