We got a bunch of domains for one vhost.
All domains including any subdomains require a basic auth except we define them as "live". When defining a domain as "live" also all subdomains are live.
SetEnvIfNoCase Host ^(.*\.)?domain1\.tld$ live
SetEnvIfNoCase Host ^(.*\.)?domain2\.tld$ live
<RequireAny>
Require valid-user
Require env live
</RequireAny>
Now I want to exclude dev.domain1.tld , so that the basic auth is required again.
How do I need to change RegEx in order to exclude dev.domain1.tld ?