690 shaares
3 liens privés
3 liens privés
Protection d'URL pour Apache
<Location /admin>
AuthUserFile /var/www/htpasswd/.htpasswd
AuthName "Password Protected Area"
AuthType Basic
Require valid-user
</Location>
Now create new htpasswd file using below command and add a new user.
htpasswd -cm /var/www/htpasswd/.htpasswd myuser