Configure Virtualmin to behave like ISPConfig2

Hi,

I’d like to switch from ISPConfig2 to Virtualmin.
But there are some huge differences. Perhaps it can be configured in Virtualmin…
Each Website should have it’s own directory and no DNS mix-up.
To explain:
I create a Website for domain1.tld. I click on “Create Virtual Server”, insert the details and click on “Create Server”. This creates a Top-level server: A new directory structure /home/domain1.tld, a DNS zone with already preconfigured names like www.domain1.tld, admin.domain1.tld etc…
Now I’d like to create a Website wiki.domain1.tld. The logical step is to create a Sub-server of domain1.tld. This creates a directory structure under /home/domain1.tld/domains/wiki.domain.tld and a new DNS zone wiki.domain1.tld.
So here are my questions:
Why does this step add a new DNS zone? I only want the dns entry added in the main zone domain1.tld.
Why does this step add a www.wiki.domain1.tld DNS entry? I only want wiki.domain1.tld.
How can I change the home directory? I want this domain in /homw/wiki.domain1.tld

Perhaps I misunderstood some concepts of Virtualmin… Can you give me some advice?

In ISPconfig2 you add so called "site" and it creates a own directory under /var/www for this site. I then can add this site to a "client" which is a customer…

Perhaps I should create a Top-level server for each website? F.e. one for www.domain1.tld, one for wiki.domain1.tld, one for forum.domain1.tld and so on? But the I have the problem that I can’t create a Top-level server named www. (The domain name does not need to have www at the start)

Thanks for your help
Best Regards,
Tobias

you can have the subserver’s dns zone added to the main domains zone file (instead of creating a new host file) by enabling this option.
Under the virtualmin tab - system settings - server template - ‘choose the template’ then go to bind dns domain - Add sub-domain DNS records to parent domain? set it to yes

if you dont want the subserver to have the same administrator/passwords etc. then you would create it indeed as a top level server.

i dont see a problem with www. you just put the name of the domain in the field and the www is created automatically as a ServerAlias in the apache directive.

Hi,

Thanks for the answer.
The option “Add sub-domain DNS records to parent domain?” does not work.
I created a Top-level server domain.tld and a Top-level server wiki.domain.tld and now I have 2 DNS zones. One for domain.tld and one for wiki.domain.tld. And in the zone wiki.domain.tld there are now records like www.wiki.domain.tld and m.wiki.domain.tld. Thats exactly what I don’t want! I want the DNS A record wiki.domain.tld added to the domain.tld Zone and I don’t want any further entries like www.wiki.domain.tld… How can I do that?
Why is the option “Add sub-domain DNS records to parent domain?” only available when I set the option “Add SPF DNS record?” to Yes. When I set this to No, the option for the sub-domain parent setting is greyed-out.

Thanks for your help…
Regards,
Tobias