Re: reverse proxy question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Nov 4, 2008 at 2:39 PM, Abhi <abhirama.bhat@xxxxxxxxx> 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]

Krist


--
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
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?

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux