Re: Apache proxy based on condition

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

 



Hi All,

   I am configuring a reverse proxy with Apache 2.2 and I need for certain conditions to make a request to another proxy. These conditions are based on some request headers and I can use them directly or mod_setenvif to configure a variable based on them.

   For example I would like the following flow:

For request header X-Custom-Type TYPE_1 -> forward to proxy 1
For request header X-Custom-Type TYPE_2 -> forward to proxy 2
etc...

  I know that there is the directive ProxyRemote in mod_proxy but this can be used at most with an url regular _expression_.

  Did anyone managed to set up a flow like this?

Regards,
Alin



[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