Point sub server to existing web server directory virtualmin

SYSTEM INFORMATION
OS type and version Ubuntu 20.04 (64-bit)
Webmin version 2.001
Virtualmin version 7.3-1
Related packages SUGGESTED

I just started using virtualmin and getting familiar to it. Previously I was using Cpanel in which I can create a subdomain with custom Document Root. For example:

subdomain, document root, redirection
server1.example.com, /public_html/server1, no redirected
server2.example.com, /public_html/server1, no redirected

In this way I could able to use same Document Root path for multiple subdomains. I have installed mediawiki on my website(s). To avoid multiple wiki installation, I was just setting Document Root to an existing installation of mediawiki. In virtualmin, I am unable to set Document Root path of subservers.
Any help will be highly appreciated.

assuming apache
use webmin->servers->apache->sub server name->edit directives and change the DocumentRoot to where it needs to be. You may also need to change the <Directory> entries to reflect this change

Thank you very much.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.