Yeah, if you create a top-level Virtual Server called, say, example.com… you can then create a Sub-Server under that account called forums.example.com.
With that, the admin user for example.com will also be able to administer forums example.com (and any other Sub-Servers).
To create a Sub-Server, click “Create Virtual Server”, and at the top of that screen, it says “New virtual server type”. You can choose “Sub-Server” there.
Well, it’s difficult to know what to suggest, as I don’t know what you’re trying to accomplish
It sounds like the issue here is that Virtualmin is attempting to create a database for the domain you’re setting up, but that particular database name already exists in MySQL.
Did you by chance create any databases outside of Virtualmin?
You also have the option of going into the “Advanced Options” when creating the Virtual Server, and changing the “Default database name” option so that your new Virtual Server uses a different database name, that may help avoid the name clash that’s occurring.
Hrm, if it’s all one site – that is, if you want it all to share one DocumentRoot, you may indeed want to add all those sub-domains as aliases of the top-level domain.
If you want separate sites, each with a separate DocumentRoot, then you’d want to create individual Sub-Servers.
If it all shares the same DocumentRoot, then you’d want to use aliases.
but i saw that this subdomain is used in the mainconfig from the site. (rewrite rules, you know )
i edited the configfile from apache2 and comment out the alias and rewrite lines.
when i creat a new subserver with webmail.example.com virtualmin is not creating any config file… its impossible for me to uses this subdomain for another webmail client
with virtualmin and without manual editing the config files…
btw after editing the mainconfig file, the subdomain is free to use (unreachable), when i creat an ne subserver i cant find the configfiles for that, because the error log shows only access to the document root from the main site, but not from the subserver
Configure Apache
These are the rewrite rules I use for this site (keep in mind that the ServerAlias directive will only work in the Apache config file for your site, and will not work in an .htaccess file; also make sure your DNS is resolving the new sub-domain properly):