Forum Moderators: phranque
#Fails - does not modify the variable:
SetEnvIfNoCase User-Agent "chrome" myOldVariable=A
#Succeeds - creates a new variable with value 'A'
SetEnvIfNoCase User-Agent "chrome" myNewVariable=A
#Succeeds - modifies the variable
SetEnv myOldVariable=A
SetEnvIfNoCase User-Agent "chrome" myNewVariable=A
From what I can tell according to the documentation at apache.org, the regex for the user agent string can be enclosed in quotes, so I don't think it's doing an exact match,
Try the following two lines (not simultaneously) and you'll see that enclosing within quotes does exactly that
SetEnvIf User-Agent "; " keep_out