jimmymm - 1:55 pm on Jan 2, 2012 (gmt 0)
After much research I think I need to use something like the following:
SetEnvIf HOST ^*test.*$ HOST_TEST
This should set the environment variable HOST_TEST if the subdomain consists of test, then require authentication. However, I'm sure I have something wrong as I'm getting an internal server error, and would appreciate a second set of eyes.