Re: mod_proxy health check custom header

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

 



Hi Eric thanks for digging into code to confirm what I was asking for isn't currently possible. Sounds like while it might be a reasonable enhancement, and somewhat easy to implement, it's not a slam dunk because it could have complications. 

Yes, you are right, by checking for a particular endpoint or perhaps other details in the incoming request/header we could have a more targeted workaround in our java application. That's probably what we'll need to do at least for now :-) Thanks for getting back to me. 

On Mon, Aug 12, 2024 at 2:53 PM Eric Covener <covener@xxxxxxxxx> wrote:
> Does anyone know how to configure the mod_proxy health check to use a custom header? Or is it not possible currently? Thank you :-)

Not a user but I checked the code and I don't think it's possible
without an enhancement to mod_proxy_hcheck.  The change would not be
too bad though.

https://github.com/apache/httpd/blob/trunk/modules/proxy/mod_proxy_hcheck.c#L429
would just need to pass something configured into r->headers_in.
The only minor complication is that the similar config in
mod_proxy_hcheck actual lives more genericly in the proxy_worker
config of mod_proxy.

>  I modified the java application to force the header to be set when an incoming java HTTP request was received. While that did allow communication with health check, it causes other problems for me so is not a good workaround.

Could you do the above only for a specific URL and then use hcuri= to
use it from the healthcheck? Or does it not dodge the other problems?

--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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