How do I configure wildcard subdomain for main site to forward to home of other domains? + WildCard SSL

3 posts / 0 new
Last post
#1 Thu, 03/17/2016 - 02:56
userzero

How do I configure wildcard subdomain for main site to forward to home of other domains? + WildCard SSL

Ok here's what I would like to do with Virtualmin. I own a four letter domain name, but will call it short.com for this example. I have many different accounts with their own home directorys on my virtualmin server. I would like to (AnyUser).short.com/(AnyPath) to point to /home/(AnyUser)/public_html/(AnyPath) . Ideally I would also like to purchase a wildcard ssl certificate for *.short.com so that I could get that working with the previously described setup.

How do I do this? And equally important, can I do this without running into major permission problems?

Thu, 03/17/2016 - 23:14
andreychek

Howdy,

Well, I can offer that if you go into System Settings -> Server Templates -> Default -> Virtual Server create, there is an option named "Automatically create alias domain".

That will make it so that anytime you create a new domain (say, example.com), it will also setup an alias for it using the domain you supply... in your case, that may be called example.short.com.

Would that do what you're after?

-Eric

Fri, 03/18/2016 - 04:29 (Reply to #2)
userzero

Ok thank you that works exactly as I wanted for the serving example.com at example.short.com as well. I actually emailed virtualmin for support and bought a subscription, and they told me that this was impossible through the virtualmin interface! I thought at least I would have to edit some apache configs , but this works great. All I need to figure out now is if I can get the wildcard ssl to work.

Topic locked