How to create a sub-server

This tutorial will cover how to create a sub-server, allowing for a second domain to be setup within a given Virtual Server account.

It assumes you have first logged into Virtualmin.

  1. Choose the domain for which you would like to add the sub-server. You can do that by selecting the domain name from the drop-down box on the top-left.

  2. Click Create Virtual Server.

  3. Click Sub-server.

  4. Enter the Domain Name and Description for the Sub-server.

  5. Click Create Server.


@Francewhoa: thanks


I think Virtualmin should change this to Yes by default (or Default valus should be Yes, because there're Yes, No and Default).

tried the solution - but not working for me. Still not reachable via internet. Where I probably made a mistake, while setting it up or during the configuration?

i have experienced that problem too, but now its done.

1. Do you have domain? i assume you have "", and your "" is can be accessed through the internet.

2. The problem is "" can't be accessed through the internet? if this is your problem, try this
- ping your "" = you will get reply, it means your site is up
- ping your "" = are you get reply? *(1)(2)

*(1) okay i assume you didn't get reply or timeout, so what you have to do is Manage your DNS by pointing "blog" A "ip address", the ip address is the same ip on "" more less like this (see below)
----------------------------------------- A
www A
blog A
(this is from DNS Management where you buy your domain, NOT FROM Virtualmin BIND DNS Server)
(after you create blog A, it not istantly created, you must wait 5-30 Minutes, usually i just wait around 10-15 minutes, so wait until times up, and do ping again to

*(2) now i assume you get reply from , so what you have to do is
- (Make sure or change) Go to Virtualmin on Left Panel > System Setting > Server Template > Click "Setting for Subserver" on the right panel. In "Edit template section: " (at top) scroll down and Change to BIND DNS Domain, click change, scroll down, find "Add sub-domain DNS records to parent domain?" make sure choose "Yes" and click save.

- (Make sure or change) In Virtualmin on left panel make sure to manage "" NOT "" and Go to WEBMIN (Click webmin on top of left panel) click on expand Server > Apache Webserver on the right panel, make sure "" is listed there (see servername column) if not listed, Click Create New Virtual Host, Choose "Specific ip Address" = (your ip) , Document Root = find your document root (dont know where it is? see below)
-- home
---- / example
--------- etc
--------- public_html / www
--------- tmp
--------- domains
------------------- etc
------------------- public_html / www (this is your "document root")
------------------- tmp
------------------- log
/root/home/ <-- more less like this the structure

on "servername" dont choose automatic, type, after that click "Create Now"
then Click "Apply Change" (on top right) > Stop Apache > then Start Apache (like restart apache)

- (Change) Go to BIND DNS Server, on Existing DNZ Zone section (on right panel), tick on, click "Add record to selected" then on "Record type to add" = Address, "New record name" = blog, "New record value" = (your ip address), "Create even if record already exists?" tick "No" (by default is NO) then click "Add record" - if there are already exist, it will not created, so dont worry.

I Hope that can solved your problem so far, but if your problem still not solved, post again here, we search another solution (if you don't mind visit, i have created Tutorial Sub-Server with Virtualmin and it works perfectly).

Como Configurar los DNS para los dominios apunten a mi servidor