This is the bare bones basics to protect a web page or series of pages on an Apache web server.
AuthName "SectionName" AuthType Basic AuthUserFile /full/path/to/.htpasswd Require valid-user
Replace SectionName with the name of what you are protecting (in and below the directory that you are putting the .htaccess file in. Example: [...]
This is one of those subjects that is a little difficult to convey clearly. It is a logical process and not difficult…but it is precise in the sense that certain files must be correct, be in the right places and have correct permissions. I’ve organized these instructions in three parts, key generation; local (client) [...]
I needed to pad a day of the month value to 2 places in a bash script.
This is made easy by the GNU program printf, which is part of standard distributions of Linux. In the following script snippet, the current day of the month is passed from the command invocation (or, if not [...]