Create Subdomains on your raspberry

Login on your raspberry with putty

Create a subdirectory

 sudo mkdir -p /var/www/recepten.van-daag.nl

Create a new apache config

sudo cp -a /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/recepten.van-daag.nl.conf

Edit the config

sudo nano /etc/apache2/sites-available/recepten.van-daag.nl

Change/add this text.

 ServerAdmin webmaster@localhost
 ServerName recepten.van-daag.nl
 DocumentRoot /var/www/recepten.van-daag.nl

 

Now activate the config

sudo a2ensite recepten.van-daag.nl

Reload the service

sudo service apache2 reload