Putting this in newbies section because after weeks of messing about and reading and reading, I do not know how to proceed. I will outline my exact specs as best I can - some will be relevant others may not, but just know I had all of this set up in a half hour the last time I did it (server company went under and backups were not existent (my fault as much as anyone.)
OK, running Proxmox and OpenVZ containers currently, but will surely be changing that to KYM with Cloudmin later, but that is not the trouble.
2 Identical Installs of CentOS 6.7 in containers one running Virtualmin Pro (the one doing the work) and a second running GPL really just for DNS.
Containers have separate IP’s, but leave on the same Proxmox bridge, Currently I have only a single WAN IP available.
OK, I know all about BIND - (no I don’t or I would not be here, but have hundreds of hours reading and doing.) Note this procedure seemed intuitive and automatic when it was done before. And there are way too many posts that suggest opposite solutions / or outdated material.
Hopefully me describing the goal here and then adding what I know will make this a post some kind person will assist with.
I am not running a real data-center or hosting anything but my own projects at this time, but I am essentially trying to set it up that way. Security and “opinions” might change if every domain looked like it was a host itself. (lol, blame that hosting company, not me. )
So, I have two VM’s with FQDN’s of for example:
real.coolhosting.com
totally.coolhosting.com
Those FQDN’s are what Virtualmin/Webmin is installed on in CentOS 6.7 Final.
Objective, serve all of my sites using ns1.coolhosting.com and ns2.coolhosting.com as DNS - all of that I basically know how to do without issue as well as creating custom virtual servers. Where I am getting stopped before even starting is the two default Virtual Hosts located at var/www/. port 80 and 443.
Those two virtual servers being in that location, and ending up the default domains, or if I change them, they are missing all of the goodies a person needs to actually host from there. Because of this, it gives one the desire to try deleting them entirely, but you cannot and I suppose should not do that. I am quite OK with having the FQDN’s of *.coolhosting.com served from there if need be. For me, since this is my project I am serving, it would be great to actually serve from there instead of home/domainname/public_html - only because I am the sole user and the 4 or 5 domains I am hosting, when placed in the home directory makes for a PITA - either having to log in with each domain’s username and PW for SSH, or throw scripts to chown the files to their proper user if I use any other account - in the end this is a bad practice - Virtualmin has files that are not supposed to be owned by the domain username and problems can occur.
From reading the official position is to use the home folder(s) - that I can deal with and won’t fight, while it would be better to not have to fight permissions.
Anyhow, all of this garbage because I am burned out after hours and hours of reading, trying, restoring punching stuff and what I see in the end is the default virtual server(s) 80/443 mess everything up. They do not allow me to have a “real” virtual server of my hostname as the DNS does not like how things are and as mentioned above, I am not seeing that these default virtual servers have even a portion of the things required to run a real website. I have tried everything I know to - the only thing not available was to delete them both and work with what I understand BIND wise, but the port 80 is not deletable. What all of this distils to is that I cannot set up anything really as those virtual servers must be taking the coolhosting.com into some DNS record(s) and making it so I cannot create a “full featured” one as one would normally do with Virtualmin.
The only thing I can remember from my prior set-up was I think I actually changed the location and directories for those default domains to the home directory, but either something has changed, or I am just hallucinating things now.
I would appreciate help. I guarantee this is covered somewhere, but after more than a week of finding nothing that really applies, or better yet nothing that works I have no choice but to ask. I know this post is horrific. Please ask questions, I most likely will have answers, I am just so burned out, I cannot think intelligently about this anymore, so my apologies.