Re: Refiring requests to proxy backend

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

 



In general, if you prepend the URL w/ 'proxy:' and then
use it in a subrequest, it will be processed as a proxy
request.
> On Dec 17, 2015, at 9:21 AM, Jose Thomas <jostho@xxxxxxxxx> wrote:
> 
> All,
> 
> I am using httpd 2.4 with mod_proxy (http) routing requests to multiple backends. 
> 
> I have a strange requirement. If a backend responds with a custom response code - i need to re-execute the request to a different backend.
> 
> What would be the right way to implement this functionality ? 
> 
> I was looking at mod_lua for a solution. The idea is to use a "LuaOutputFilter" to check the response code, and then re-execute the request with a different backend. How can i refire the request ? Should i use a lua httpclient library for this ? Is there a easier way to do this ?
> 
> Any other suggestions/comments are welcome. 
> 
> Version of stack
> * Apache 2.4.6
> * Lua 5.1.4
> 
> Regards,
> Jose
> ____________
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[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