I'm struggling with some Apache HTTP server-config.. Specifically I load a date in format YYMMDDHHmmss from a lookup-file via RewriteMap, which I try to compare to the current value from the TIME variable.
RewriteMap lookup "txt:/path/to/file.flat"
RewriteCond ${lookup:somekey|NOT_FOUND} NOT_FOUND [or]
RewriteCond ${lookup:somekey|19700101010101} <%{TIME}
In file.flat would be something like this:
somekey 20211010042042
It does not seem to work so far, which lead me here. Does anybody have a suggestion on how to tackle this problem?
The last straw I could imagine would otherwise be any kind of script I evaluate the expression with.