1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

sites-available configuration

Discussion in 'Apache' started by karabaja2, Feb 20, 2015.

  1. #1
    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?
    karabaja2, Feb 20, 2015 IP
  2. arun_cloudtuts

    arun_cloudtuts Greenhorn

    Likes Received:
    Best Answers:
    Trophy Points:
    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):
    arun_cloudtuts, Apr 18, 2015 IP