.htaccess password protection

The htaccess file:
AuthName "-- Clasified area --"
AuthType Basic
AuthUserFile /www/htpasswd
require user rip rap rup


To initialize the passwd file: , file must be outside wwwroot
root@chilibeans:/root# htpasswd -c /www/htpasswd mike
New password:
Re-type new password:
Adding password for user mike

Following to add news users use same command except "-c"
Dette indlæg blev udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base. Bogmærk permalinket.

Skriv et svar