vmod basic auth on varnish 4

Tim Dunphy bluethundr at gmail.com
Wed Jul 29 16:51:58 CEST 2015

Hi Lasse,

 I was able to work out how to do this. All I had to do was download the
varnish 4.0.3 source code, do autogen.sh, configure and make. But not a
make install.

Then I went to the vmod basic auth directory I had downloaded and expanded
earlier. Went through autogen.sh, configure, make && make install there.
While pointing to my vmods directory in the configure script.

Works perfectly! And that is apparently the way to do it. However it would
be a lot easier if I could have done this through a yum install. Apparently
this is not possible currently.

This vmod was appealing because with this there is no need to enter in the
user name and password of the auth user using a base64 hash. You simply
point it to a file you create with htpasswd somewhere on your file system.
It's a little better that way I think.


On Wed, Jul 29, 2015 at 7:42 AM, Lasse Karstensen <
lkarsten at varnish-software.com> wrote:

> On Tue, Jul 28, 2015 at 01:49:30PM -0400, Tim Dunphy wrote:
> > I've just upgraded my varnish setup from version 3 to version 4. I've
> successfully ported almost my entire default.vcl file to the new syntax.
> [cut]
> > But I need to use Apache basic auth. The new version requires you to
> install a module for this.
> I'm not familiar with any change in this regard between 3.0 and 4.0. Basic
> auth is just a static header.
> Set bereq.http.Authorization and you should be good to go?
> --
> Lasse Karstensen
> Varnish Software AS

GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150729/b015acd7/attachment.html>

More information about the varnish-misc mailing list