// Aula 1 - Instalando um Apache # apt install apache2 # vim /etc/apache2/apache2.conf KeepAlive On MaxKeepAliveRequests 50 KeepAliveTimeout 5 # cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf # vim /etc/apache2/sites-available/example.com.conf Require all granted ServerName example.com ServerAlias www.example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/html/example.com/public_html ErrorLog /var/www/html/example.com/logs/error.log CustomLog /var/www/html/example.com/logs/access.log combined # mkdir -p /var/www/html/example.com/{public_html,logs} # a2ensite example.com.conf # a2dissite 000-default.conf # systemctl reload apache2 http://enderecoip/example.com/