Category Archives: System Admin

Password Protect Directories Using Htpasswd On Nginx

Nginx 1.4.3, Magento CE 1.7.0.2 Apache offers us a neat security feature using http auth. It provides a simple way of protecting files and directories which is extremely useful, albeit not high-level security. Nginx users will be happy to hear that this functionality is also available by default on Nginx 1.4.3 using the HttpAuthBasicModule. The […]

Manipulating Files Using Terminal Commands

CentOS 6.4 Here’s a few very quick and basic commands to do things with files via the terminal. These can be vastly improved upon; please comment if you have better methods for this. Basic commands 123456// view the first 25 lines in a file $ head -25 filename.sql // view the last 25 lines in […]