Welcome to my Raspberry Pi 2 Model B, Web Server!

How to add a virtual host


$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/www.example.com $ sudo vim /etc/apache2/sites-available/www.example.com $ sudo mkdir /var/www/vhosts/www.example.com $ sudo a2ensite www.example.com $ sudo service apache2 reload

How to remove a virtual host


$ sudo a2dissite www.example.com $ sudo service apache2 reload