I could do this really easily with cPanel earlier, but now that I migrated to Virtualmin, I just do not know how.
If I have a site with domain www.mysite.com running on Webmin/Virtualmin, I just want a subdomain that can easily allow me to access the Virtualmin console.
Currently I always have to type www.mysite.com:10000 to get to Webmin/Virtualmin
On my external DNS service I’ve already created a CNAME record set for webmin.mysite.com which points to mysite.com (that was the way it was done in cPanel too).
Virtualmin defaults to setting up an “admin.domain.tld” redirect for this purpose.
You can customize it in Server Templates under Apache website. The options you want are Redirect admin.${DOM}? and URL for admin redirect. You can click them for popup help.
Thank you, I am still having trouble finding this particular option.
Here is what I am doing:
Click on Webmin on the top-left
Click on Servers -> Apache Webserver
Click Global configuration
A whole bunch of options are here as shown in the screenshot. I tried them all, even the one that says “Edit Config Files” but cannot find either the Redirect or URL options
@ZeeMan or you can do create subserver (subdomain) on your current virtualmin and place into empty /public_html folder .htaccess file with redirect like this: