Protect a folder web with Apache
Create a file .htaccess in folder
AuthName "Accès restreint"
AuthType Basic
AuthUserFile "/path/to/.htpasswd"
Require valid-user
Add/create a user
htpasswd -c /path/to/.htpasswd admin
Create a file .htaccess in folder
AuthName "Accès restreint"
AuthType Basic
AuthUserFile "/path/to/.htpasswd"
Require valid-user
Add/create a user
htpasswd -c /path/to/.htpasswd admin
Comments
Post a Comment