Create an Apache SetEnv variable with the subdomain name in case of wildcard Create an Apache SetEnv variable with the subdomain name in case of wildcard apache apache

Create an Apache SetEnv variable with the subdomain name in case of wildcard


Try this:

SetEnvIf Host "^([^\.]*)\.website\.com$" CLIENT_NAME=$1

Hopefully that helps.