Hi! I just installed a new server and I would like to transfer all virtual-hosts on new Apache installation. I updated all IP addresses in each .config file and simply uploaded the edited conf files into new /etc/apache2/sites-available folder. I rebooted Apache, but through Webmin I can not see them on Existing virtual hosts list. Why? Do I need to manually re-add all the 30 sites?
After adding virtualhost files to sites-available folder , you need to enable those Virtualhosts. To do so execute below command a2ensite virtaulhostfilename.conf Code (ApacheConf): Note : Replace virtaulhostfilename.conf with your site virtualhost file name. and then reload apache instead for Restarting the whole server. To reload Apache execute below command in terminal. sudo service apache2 reload Code (ApacheConf):