If you want to provide basic authentication to a folder on your web server, do the following.
1. create a password file
htpasswd -c mypasswdfile username
Now enter a new password. If this file already exists then you do not need to create it by "-c".
Instead you can straight away add to the existing file a new username and a passwd.
2. Setting access.
cd to the folder that you want to protect and create a .htaccess file.
Add the following lines there.
AuthType Basic
AuthName authentication name
AuthUserFile location_of_the_mypasswd_file
AuthGroupFile ifany
Require specific_users can be given by user or set to valid-user
Thats all folks!
This blog covers various topics from technical tweaks to latest in computational linguistics, Artificial Intelligence, Machine Learning and Wed Data Mining.
Subscribe to:
Post Comments (Atom)
Continuously monitor GPU usage
For nvidia GPUs do the follwing: nvidia-smi -l 1
-
If you used Adobe acrobat to annotate a PDF file and you had Acrobat crashed or had to restart the computer abruptly during the annotation p...
-
The following set of commands will plot two data series in a file using point markers and also write the output to a eps file and further co...
-
EXPLORING WEB SCALE LANGUAGE MODELS FOR SEARCH QUERY PROCESSING Jian Huang, Jiangbo Miao, Xiaolong Li, Jianfeng Gao and Kuansan Wang CROSS...
No comments:
Post a Comment