No matter what, Apache is always going to the else block. I've looked at this one, but this one is using a user-defined environment variable. I'm trying to use an apache header to do some dynamic includes.. I've read some mixed things about dynamic includes (it might not be possible?). Basically, I'm trying to do this:
<If "%{REQUEST_URI} =~ m#/^.*my-wanted-string.*">
Include myconf1.conf
</If>
<Else>
Include myconf2.conf
</Else>
Is this possible to do in apache 2.4? I'd like to check the logging of REQUEST_URI to confirm that it's not empty because nothing matches.