> I'll keep you posted if I find a smart way to re-fire mod_proxy on demand.
>
> With regards,
> Daniel.
>
>
Thanks Daniel.
On 12/18/2015 05:30 PM, Jose Thomas wrote:
> Daniel,
>
> I have successfully implemented the router in lua using a lua script
> called from a "LuaHookFixups" directive.
>
> LuaHookFixups /var/www/lua/myscript.lua router
>
> -- /var/www/lua/myscript.lua
> function router(r)
> local route = ge
Daniel,
I have successfully implemented the router in lua using a lua script called
from a "LuaHookFixups" directive.
LuaHookFixups /var/www/lua/myscript.lua router
-- /var/www/lua/myscript.lua
function router(r)
local route = get_route(r)
if route then
r.filename = "proxy:balanc
I'm interested in knowing how you did it in mod_python. Do you use an
external http lib and process the result yourself? That's certainly also
possible with mod_lua.
With regards,
Daniel.
On 12/18/2015 05:12 PM, Daniel Gruno wrote:
> I think you need two phases here, as mod_lua doesn't itself do
I think you need two phases here, as mod_lua doesn't itself do the
proxying, but delegates it to mod_proxy.
First, http://modlua.org/recipes/loadbalancing will show you how to proxy.
Secondly, you could then set up a handler for the specific HTTP code
using ErrorDocument or an output filter.
I h
I'm not a mod_lua expert, esp as it relates to exposing the
full Apache httpd API... it is possible that using r.handler
and specifying the proxy may work.
> On Dec 18, 2015, at 8:05 AM, Jose Thomas wrote:
>
> Jim,
>
> Sorry, I could not find the documentation on how to do this using mod_lua.
Jim,
Sorry, I could not find the documentation on how to do this using mod_lua.
Can you please point me there ?
In my current setup which is on httpd 2.2 - we use modpython. For routing
requests (based on a header) we use a simple python script. For refiring
the request (when a custom response co
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 wrote:
>
> All,
>
> I am using httpd 2.4 with mod_proxy (http) routing requests to multiple
> backends.
>
> I have a strange requ
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 l