httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Toscano <toscano.l...@gmail.com>
Subject Re: [users@httpd] AuthName with expression in Apache 2.4
Date Mon, 12 Sep 2016 12:33:39 GMT
Hi Emanuele,

2016-09-12 12:35 GMT+02:00 Emanuele Bastianelli <manu.reeko@gmail.com>:

> According to the documentation
> <https://httpd.apache.org/docs/trunk/mod/mod_authn_core.html#authname>,
> in apache 2.5 it should be possible to use expressions in the AuthName directive
> when performing authentication, e.g.
>
> AuthName "%{REQUEST_URI}"
>
> In this case, it should be possible to treat dynamic requests. In the
> example the variable REQUEST_URI can take different value according to the
> request, e.g. being pageone for www.mysite.com/pageone and pagetwo for ww
> w.mysite.com/pagetwo. Unfortunately, apache 2.5 is still in development.
> Is there any workaround or upgrade to do in order to obtain the same
> behaviour in apache 2.4?
>

the trunk patch containing the feature that you need should be
http://svn.apache.org/r1663123, so you could apply it to your httpd source
code and rebuild. Please use it with care since as far as I can see it has
not been reviewed/promoted to the 2.4.x branch yet.

Luca

Mime
View raw message