virtualmin not loading domains

4 posts / 0 new
Last post
#1 Thu, 05/24/2012 - 04:30
MrJingles

virtualmin not loading domains

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.

Thu, 05/24/2012 - 05:37
ronald
ronald's picture

is the http package coming from vitualmin repo? and is suexec running with doc root /home?
how did you install virtualmin?

Thu, 05/24/2012 - 07:17
MrJingles

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

  1. edit /etc/apache2/apache2.conf change the NameVirtualHost to match your new IP NameVirtualHost x.x.x.x:80

  2. edit each virtual domain /etc/apache2/sites-available/yourdomain.conf to match your NameVirtualHost

so eg .

safe all files and restart apache

problem solved

Thu, 05/24/2012 - 10:01
ronald
ronald's picture

Great.
There is also the option under Virtualmin - Addresses and Networking - Change IP Addresses if you want to do things automatically :)

Topic locked