httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhi <abhirama.b...@gmail.com>
Subject Re: [users@httpd] reverse proxy question
Date Tue, 04 Nov 2008 16:33:37 GMT
Thanks for that Krist.

I want to do it without a redirect. I am trying to do something with google
gears and google gears has the same origin security policy. So I cannot
cache URL's with different domains.

Is there any way I can achieve this with an internal forward rather than a
redirect?

On Tue, Nov 4, 2008 at 7:38 PM, Krist van Besien
<krist.vanbesien@gmail.com>wrote:

>
>
> On Tue, Nov 4, 2008 at 2:39 PM, Abhi <abhirama.bhat@gmail.com> wrote:
>
>> The scenario is:
>>
>> I want to forward the request of this format
>>
>> http://localhost/foo/moo.flv
>>
>> to
>>
>> http://bar.com/cgi-bin/outflv.pl?flv=moo.flv
>>
>> If I have the following rule in my apache2.conf file it does not work.
>>
>> ProxyPass /foo/  http://bar.com/cgi-bin/outflv.pl?flv=
>>
>> Is there a way to achieve this
>
>
> Yes.
>
> RewriteRule /foo/(.*)   http://bar.com/cgi-bin/outflv.pl?flv=$1 [P]<http://bar.com/cgi-bin/outflv.pl?flv=>
>
> Krist
>
>
> --
> krist.vanbesien@gmail.com
> krist@vanbesien.org
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>



-- 
Cheers,
Abhi

Mime
View raw message