Hello, I've been looking for a solution for the following problem for a couple hours.
I want to have 2 shared IPs available. One for the corporate website I host and one for personal pages. I had setup my Virtualmin website with lets say XX.XX.XX.XX and then I added YY.YY.YY.YY and change a couple or my virtual servers to use the second IP. But for some reasons, one of the website shows the content of /var/www/XXXX/ which is a nameserver I have not created with webmin.
Here if what I have done:
*I made sure that the NameServer in apache2 would fit the two shared IPs
*I double checked all my configuration files
*I made sure there were no error with the network adaptor.
I made sure there were no "" as my virtual host IPs
The virtual server created with Virtualmin (set with YY.YY.YY.YY IP) has the default configuration and the virtual host has the following configuration:
<VirtualHost XX.XX.XX.XX :80> ServerAdmin email@example.com ServerName domain.com ServerAlias domain.com DocumentRoot /var/www/XXXX/ <Directory /var/www/XXXX/> Options -Indexes FollowSymLinks MultiViews AllowOverride All </Directory> ErrorLog /home/username/logs/error.log LogLevel warn CustomLog /home/username/logs/access.log combined ServerSignature Off </VirtualHost>
I really don't know what to do. Thank you for your help.