When the following SetEnvIf
directive is in a virtual host directory section or in an .htaccess
file the Request_URI
variable is percent decoded.
But when it is not in a directory
section or .htaccess
file (i.e. virtual host or server config context) it is not decoded (it remains percent encoded).
What controls/determines this difference? My guess is that this is a byproduct of having to traverse the file system directory tree. Because the file system path is not percent encoded.
Is this configurable such that the Request_URI
Apache SetEnvIf
variable is percent decoded in the virtual host and/or server config context also?
SetEnvIf Request_URI "^.*access_logger/counters/(.*)\.gif$" Page_Name_File_Name=$1 log_file log_sql_db validate_cache
Apache/2.4.6 (CentOS)
Apr 2 2020 13:13:23