March 1, 2015

[VestaCP] How to make a domain as the default domain of this IP/Server

If your VestaCP has more than one user account, you have to do step 1 and step 2.  If not, you can jump to step 3 directly.

  1. Open the config file with any editor: /etc/httpd/conf.d/vesta.conf
  2. Move the preferred user to the top of this file.
  3. Open /home/admin/conf/web/httpd.conf
  4. Move the preferred VirtualHost to the top of this file.

    <VirtualHost 128.199.191.204:8080>

    </VirtualHost>

  5. Restart the apache server

    service httpd restart