Make proxy and mod_perl have the same document root.

Use mod_rewrite on the lightweight proxy to serve certain 
directories from itself rather then passing them back to 
modperl (have it server images while you are at it)

Upload files to the directory specified above.

Result : File is uploaded using mod_perl but accessed 
using the static apache. Bonus, your images are served out 
of it as well meaning you get a really great performance 
boost.

John-
On Thu, 26 Sep 2002 18:30:45 +0400 (MSD)
  Igor Sysoev <[EMAIL PROTECTED]> wrote:
>On Thu, 26 Sep 2002, Scott Alexander wrote:
>
>> I have two experimental servers frontend and mod_perl.
>> 
>> mod_perl is apache with mod_perl
>> frontend is apache lightweight
>> 
>> My config only passes *.pl thru to mod_perl
>> 
>> When a user uploads a file they use a mod_perl script on 
>>mod_perl and the
>> file is saved on mod_perl.
>
>If you use mod_proxy thne mod_perl would be busy for all 
>upload time.
>Although there's patch for mod_proxy to buffer upload in 
>temp file.
>mod_accel always buffers client's upload.
>
>> But I want the file to be on frontend as it makes sense 
>>for when they
>> download the file ... they only need a lightweight 
>>apache server to do
>> that.
>> 
>> So far I can think of doing
>> 
>> 1. Putting a cgi script on frontend to handle file 
>>uploads and save the
>> file on frontend.
>> 
>> 2. Use network file share between mod_perl and frontend.
>
>You can send file from mod_perl and cache it on frontend.
>If you use mod_accel then it buffers whole reponse from 
>backend
>in temp file and releases mod_perl as soon as possible.
>You even do not need to cache it.
>
>
>Igor Sysoev
>http://sysoev.ru
>

Reply via email to