====== Autenticação no apache ======
Para utilizar a autenticação no apache e precisa criar o arquivo de senha e configurar o apache(/etc/apache/conf-available/000-default.conf)
htpasswd /etc/apache2/.htpasswd usuario01
e depois configurar /etc/apache2/sites-enabled/000-default.conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user