Apache 2.4.18 on Windows - Expression in AuthName not working

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

 



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 :
[https://httpd.apache.org/docs/trunk/en/mod/mod_authn_core.html#authname]
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	
</Directory>

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

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

Thanks,
--
Thibault Roche

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