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 <jos...@gmail.com> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to