I have a fresh install of CentOS 7.2.1511, with only VirtualBox loaded as an extra package under a pretty basic server setup with the GUI for occasional desktop use to open/run VirtualBox. The base server itself is ‘sub.domain.local’, at 192.168.0.111 on a local/private network.
Through Webmin/Virtualmin I have enabled SSL on every domain I’ve created so far to use self-signed certs. This is a dev server, so all 3 sites currently created have a “.local” TLD. I have modified my Win7 host file to point to the server’s IP for every one of these, so I don’t have any issue using the non-standard TLD. Likewise I can access it directly via it’s IP number.
- 1st virtual server created: ‘main-domain.local’ w/ index.php, which simply contains a phpinfo() command.
- 2nd virtual server created: ‘second-domain.local’ w/ a complex index.php - as part of a complete CMS script.
- 3rd virtual server created: ‘third-domain.local’ w/index.html - essentially a blank page with a simple HTML skeleton containing basic DocType/HTML/Header/Body declarations, only.
- Under the .111 IP (I’m assuming it’s using /var/www ???), there’s an identical index.php w/phpinfo(), just as there is on the 1st domain.
Browsing to any of these as non-secured pages will render the expected page output for each one. The 1st domain also has phpMyAdmin installed in a subdirectory and it’s running correctly (without aliases or anything else to create other issues).
However, using https to browse each one shows unexpected results…
- Shows the CMS installed under 2nd domain, and when using the ‘/phpmyadmin’ subfolder added to the address - I get a 404 error from the CMS.
- Shows the CMS correctly, as it was installed.
- The 3rd server shows the stand-alone HTML page correctly
- Using the IP number - I also see the same CMS installed in #2
I have deleted and redone these domains and their contents 3 seperate times using webmin/virtualmin only, so no hand editing of any files. Each time I’ve ended up with the same outcome. I did have to insert an AddHandler in php.conf for php to function properly, but that shouldn’t, I assume, have any bearing on SSL.
Looking in etc/httpd/conf/httpd.conf for any VirtualHost 192.168.0.111:443
lines… there is no entry for the 1st domain, only the 2nd and 3rd. I’m guessing that might be the issue. I could probably add something, but that won’t fix any overall bugs if it’s needed for virtualmin to do it on its own.