lucy24 - 10:19 pm on Oct 9, 2013 (gmt 0)
Jim and I had this disagreement many times (i. e., the use of quotes and exactly as) in the last years of his participation here.
This goes all the way back to the earliest versions of Apache (I've still lines in place from those earlier days) and they remain functional in the most current versions.
Jim kept quoting the Apache Docs and I kept telling him that in this specific instance the Apache Docs were full of beans (of which there are a few other examples).
I'm sorry, Don, but I don't understand what you are saying. Specifically I don't understand what you're disagreeing with. And I don't see where "exactly as" enters into it at all, since I didn't say anything about that.
What _I_ said was: If the user-agent string-- or whatever other string you're testing in mod_setenvif-- contains literal spaces, one way to preserve those spaces is to put the test string in quotation marks. If you don't use quotation marks, the spaces acquire their usual semantic meaning.
BrowserMatch "rogerbot 1.6.2" keep_out
= If the UA string contains the element "rogerbot 1x6x2" then set the variable "keep_out" to its default value (1, or "true", or whatever it is)
BrowserMatch rogerbot 1.6.2 keep_out
= If the UA string contains the element "rogerbot" then set two variables, "1.6.2" and "keep_out"
Quotation marks don't cancel regular expressions and they don't create anchors.
BrowserMatch "Camino/2.1.2 (like"
= 500 error due to mismatched parenthesis
BrowserMatch "Camino/2.1.2 \(like"
= I am blocked
= I am blocked