Created
May 24, 2017 19:45
-
-
Save evemilano/3e0649506c7ce10980259d6fae008a24 to your computer and use it in GitHub Desktop.
Apache Directory Password Protection - /etc/apache2/sites-enabled/000-default.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/html | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory "/var/www/html"> | |
AuthType Basic | |
AuthName "Restricted Content" | |
AuthUserFile /etc/apache2/.htpasswd | |
Require valid-user | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full article: https://www.evemilano.com/2017/05/impedire-accesso-google/