How to add new domains on ubuntu apache server
sudo mkdir /var/www/mydomain.com
sudo chown -R www-data:www-data
/var/www/mydomain.com
Enable the new file<VirtualHost
:80>
mysite.com
ServerName
mysite.com
ServerAlias *.mysite.com # redirect all subdomains
DocumentRoot "/var/www/mysite.com"
<Directory /var/www/mysite.com/>
Require all granted
AllowOverride All
</Directory>
</VirtualHost>
sudo a2ensite mysite.com.conf
sudo service apache2 restart
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
https://httpd.apache.org/docs/current/vhosts/name-based.html