Apache htaccess and htpasswd Rumi, May 23, 2009March 29, 2017 In order to protect a site or a directory using Apache htaccess and htpasswd files follow the steps- 1. Creating .htaccess file and putting the following code- AuthUserFile /your/abosolute/path/to/this/file/.htpasswd AuthGroupFile /dev/null AuthName "Protected files" AuthType Basic <Limit GET> require valid-user </Limit> 2. Create a .htpasswd in the same directory as .htaccess and put your generated code. Now the big question how to get a ‘generated code’. Apache used bas_64 encoding. A good web based generator is- http://www.htaccesstools.com/htpasswd-generator/ Save the file. And here you go! Your site is protected! Related Administrations Configurations (Linux)
Install SquirrelMail January 6, 2011 To install the SquirrelMail webmail client, run apt-get install squirrelmail Then create the following symlink… ln -s /usr/share/squirrelmail/ /var/www/webmail … and configure SquirrelMail: squirrelmail-configure Related Read More
Allow Ping on PFSense WAN interface September 9, 2022 This article shows you how to allow ##ping## on the WAN side of your pfSense firewall. By default, ping to WAN address is disabled on pfSense for security reason. However, you may want to allow ping for different reasons, here is how: # Login to pfSense # Open Firewall >… Read More
Learning watch command with examples! January 18, 2017 watch date watch -d date watch -n 10 df -h watch -t date watch echo “‘”‘$$'”‘” watch echo $$ watch -n 0.5 echo $$ watch -n 1 ‘ps -e -o pid,uname,cmd,pmem,pcpu –sort=-pmem,-pcpu | head -15’ watch -d -n 1 ifconfig watch -n 1 tail /var/log/messages watch -d=cumulative date watch “du… Read More