Category Archives: Apache

Ubuntu: Add new domain / subdomain in apache

Navigate to /etc/apache2/sites-available. Create a file with your new domain name and add the following:

#file: mydomain.com
ServerName mydomain.com
DocumentRoot /root/directory/of/site

Source: http://linuxapachemysqlphp5.blogspot.com/2013/04/ubuntu-add-new-domain-subdomain-in.html