httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thibault Roche <>
Subject [users@httpd] Apache 2.4.18 on Windows - Expression in AuthName not working
Date Fri, 22 Jan 2016 14:21:15 GMT
Hey guys,

I am trying to use an expression in the AuthName directive. The doc 
states that it should be working with version > 2.4.13 :
 From 2.4.13, expression syntax can be used inside the directive to 
produce the name dynamically.

But I can not make it work. I have this in my configuration :
<Directory "C:/Users/troche/Documents/opx2/perso/">
	Options Indexes
	IndexOptions FancyIndexing foldersfirst -IconsAreLinks
	AuthType Basic
	AuthName "%{HTTP_HOST}"
	AuthUserFile "C:\Dev\Apache24\conf\passwords"
	Require valid-user	

And the authentication popup just says "%{HTTP_HOST}".
I also tried to remove the "" around %{HTTP_HOST} but I have the same 

Any idea what I am doing wrong ? Is it a bug ? Has anyone been able to 
make it work ?

Thibault Roche

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message