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

Comments

Popular posts from this blog

Install Gitea on NAS Netgear

Send mail with from on Linux