backend polling basic auth

fatblowfish fatblowfish at gmail.com
Mon Apr 16 03:00:48 CEST 2012


Hi,

For the backend health polling, I had to use the .request parameter to
specify the basic auth credential necessary to authenticate with the
backend; I'd definitely get a 401 if I just used .url plainly. For example,
using a bogus url,password of course...

.request =
        "GET /foo/i_is_healthy HTTP/1.1"
        "Host: 127.0.0.5"
        "Authorization: Basic
ZmF0Ymxvd2Zpc2g6c29sb25nYW5kdGhhbmtzZm9yYWxsdGhlZmlzaA=="
        "Connection: close";

My question is: Is there a much elegant approach to this? I'd rather
*not*have the base64 encoded string on a(ny) file on the server.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120416/cc53c7c1/attachment.html>


More information about the varnish-misc mailing list