Page 1 of 1

Wildcard Cnames

Posted: Sat 23. Dec 2023, 19:51
by gacott
Hello,

We have a very specific use in mind for the software. We have a WordPress-based plugin that creates any number of subdomains within one installation. This is done by using a cname wildcard at the DNS provider, pointed to the single domain install.

Using past control panels, we would accomplish this by doing; *.domain.com. But in this case that creates a subdomain called wildcard.domain.com.

Will the software support the usage we intend? And if so, what's the best way to achieve this?

Thanks

Re: Wildcard Cnames

Posted: Sat 23. Dec 2023, 20:03
by Jolinar
gacott wrote: Sat 23. Dec 2023, 19:51 Using past control panels, we would accomplish this by doing; *.domain.com
You can try the following...

Go to Domains >> Domains >> Edit Domain >> Apache Settings, and insert:

Code: Select all

ServerAlias *.domain.com
and save it.

Re: Wildcard Cnames

Posted: Sat 23. Dec 2023, 20:41
by gacott
Awesome, super appreciated!

Is there a way to make this part of the domain template or Apache template? So that it would apply to all domains created.
And if so, could I get instructions for this?

Again, thanks so much!

Re: Wildcard Cnames

Posted: Sat 23. Dec 2023, 21:52
by gacott
I have been digging around more, quite nice! We will get the licenses for sure, thanks!

About making sure it happens for all domains, I would assume I could do it here: Image if I know what to put so that it works for all domains?