Hi,
I also am experiencing this problem. I think it coincided with a recent Apache2 update.
In my case, I have 3 domains, each one using SSL websites. The first one was installed on internal ip address 192.168.1.65, the other two had to be installed by Virtualmin using virtual ip’s.
All three webservers point to the domain on internal ip address 192.168.1.65. As far as I can see, Virtualmin has set them up correctly with their own public_html directories, but they are not using them. I’ve checked by placing an index.html file in each - they only show that page when it is in the public_html directory belonging to the first domain on 192.168.1.65.
I’ve checked the apache2-default file and removed any NameVirtualhost * and explicitly stated all the ip addresses I’m using as follows:
NameVirtualHost 192.168.1.65:80
NameVirtualHost 192.168.1.65:443
NameVirtualHost 192.168.1.70:80
NameVirtualHost 192.168.1.70:443
NameVirtualHost 192.168.1.71:80
NameVirtualHost 192.168.1.71:443
The VirtualHost statements in Apache2/sites-available explicitly state the internal ip addresses as you recommended.
When I get Virtualmin to re-check configuration it states that the Default IP address for virtual servers is 192.168.1.65. How do I get Apache to send the other two domains on virtual ip’s to their own public_html directories? Everything else seems fine:
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active …
BIND DNS server is installed, and the system is configured to use it.
Mail server Postfix is installed and configured.
Apache is installed.
Webalizer is installed.
Apache is configured to host SSL websites.
MySQL is installed and running.
ProFTPd is installed.
Logrotate is installed.
SpamAssassin and Procmail are installed and configured for use.
ClamAV is installed and assumed to be running.
Plugin DAV Login is installed OK.
Plugin AWstats reporting is installed OK.
Plugin Mailman is installed OK.
Plugin Protected web directories is installed OK.
Using network interface eth0 for virtual IPs.
IPv6 addresses are available, using interface eth0.
Default IP address for virtual servers is 192.168.1.65.
Both user and group quotas are enabled for home and email directories.
All commands needed to create and restore backups are installed.
… your system is ready for use by Virtualmin.
I hope you can shed some more light on this irritating problem.