I’m a complete newbie with Virtualmin/Webmin, and dedicated servers in general.
Here is what I need to do:
They must all point to the same location (same /prod-directory) and use the same prod-database. Content is served according to the domain name (if domain.com => serve content in US English, if domain.fr => serve content in French, etc.)
They must all point to the same location (same /dev-directory) and use the same dev-database. Content is served according to the domain name (if dev.domain.com => serve content in US English, if dev.domain.fr => serve content in French, etc.)
And finally, I have a multi domain certificate (MDC) to secure all these subdomains (but that’s for later).
I know how to create a top-level server and an alias (that seems to cover PART 1).
However when I want to create a sub-server (PART 2), I don’t know how to make the new subdomain point to a different directory than the default directory.
So my question is: what do you recommend?
- Create a symbolic link to /dev-directory from the default directory
- Change the settings to make the sub-domain point to /dev-directory (and if so, how?)
- Other solution?
Thanks a lot for your help!