1) sudo apt-get install apache2 2) apachectl start 3) Dal browser digitare http://localhost 4) echo Prova > /var/www/prova.html 5) Dal browser digitare http://localhost/prova.html 6) Cambiare NameVirtualHost *:80 in NameVirtualHost * in /etc/apache2/ports.conf e /etc/apache2/sites-enabled/000-default e mettere 1234 dopo Listen. Digitare apachectl restart 7) Come risultato si ha Connessione non riuscita. 8) Dal browser digitare http://localhost:1234 9) Cambiate la Listen in 80 e riavviate il server. 10-12) mkdir /var/www/sito1 mkdir /var/www/sito2 echo Sito1 > /var/www/sito1/index.html echo Sito2 > /var/www/sito2/index.html 13) Vedere le slide. Per fare delle prove aggiungere al file /etc/hosts le righe: 127.0.0.1 www.sito1.com 127.0.0.1 www.sito2.com 14) Dovete abilitare Userdir con il comando: $ sudo a2enmod userdir La cartella standard è public_html.