I know it's possible to use wildcards for subdomain aliases like:

ServerAlias *.domain.com

But is it possible to use that for domains having a the same subdomain?

# like this
ServerAlias subdomain.*.com

Yes, that should work - the rules for wildcards in ServerAlias don't need to worry about the rules that DNS wildcards follow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.