Yeah, main problem with
<If>
is "Only directives that support the directory context can be used within this configuration section." httpd.apache.org/docs/2.4/mod/core.html#if