I recently installed virtualmin on a server and I added 2 domains and 2 aliases.
I restarted the server and now when I go to any of the domains it goes to the default /var/www/ directory without going to the correct domain.
I have created aliases to see if it will work but even the aliases goes to the default /var/www/ directory in the browser.
I have restarted webmin and usermin in terminal without any change.
is there a redirect or something that I am missing?
please help.
ronald
2
is the http package coming from vitualmin repo? and is suexec running with doc root /home?
how did you install virtualmin?
Hi Ronald
Thanks for the suggestions -
I managed to get it fixed , my issue was that the server changed its IP address and it wasnt loading the virtual hosts.
This is how to fix it -
this is on ubuntu server
-
edit /etc/apache2/apache2.conf
change the NameVirtualHost to match your new IP NameVirtualHost x.x.x.x:80
-
edit each virtual domain /etc/apache2/sites-available/yourdomain.conf to match your NameVirtualHost
so eg .
safe all files and restart apache
problem solved
Great.
There is also the option under Virtualmin - Addresses and Networking - Change IP Addresses if you want to do things automatically