Daily tip

How to create a password which can be used to grant access to some areas in your server?

With the Apache utility htpasswd like in the example below

htpasswd -c /usr/local/apache/passwd/passwords rbowen

Note that the password file must be outside the DocumentRoot FOlder and therefore outside from Internet reach, for obvious reasons.