Stap 4: Herhaal voor elke virtual host
$ sudo mkdir -p /var/ www/www.softserv.com/html
of
$ sudo mkdir /var/ www/www.softserv.com
$ sudo mkdir /var/ www/www.softserv.com/html
Server detail bestand maken voor elk bestand in de /etc/apache2/sites-available /
oesrvr1
[code]
< VirtualHost * >
Servernaam oesrvr1
cd /etc/apache2/sites-enabled/<br /> ln -s ../sites-available/ubuntu-tutorials.com .oesrvr1
ServerAdmin-eddie
DocumentRoot/var/www
< directory/var/www >
Opties FollowSymLinks
AllowOverride geen
< / directory >
< / VirtualHost >
[/ code]
www.softserv.com
[code]
< VirtualHost * >
Servernaam www.softserv.com
sudo /etc/init.d/apache2 restartwww.softserv.com
ServerAdmin-eddie
DocumentRoot /var/ www/www.softserv.com/html
< directory /var/ www/www.softserv.com/html >
Opties FollowSymLinks
AllowOverride geen
< / directory >
< / VirtualHost >
[/ code]
Instellen van een link voor elk bestand in /etc/apache2/sites-enabled
$ cd /etc/apache2/sites-enabled
$ sudo ln -s... /sites-available/oesrvr1
$ sudo ln -s... /sites-available/www.softserv.com
Inschakelen van sites;
$ sudo a2ensite oesrvr1
$ sudo a2ensite www.softserv.com