How to exclude subfolder from password protection with .htaccess

You sometimes need to password protect a folder or an entire account/website from direct access. That’s easily done with the appropriate .htaccess file in the protected folder plus the mandatory .htpasswd file with the correct user and password combination(s).

But what do you do when you want to enable direct access to a subfolder of the protected folder?

Fixing Postfix authentication issues on CentOS 6 with Virtualmin

The weirdest errors are those occurring on a freshly installed system where you’d expect for everything to simply work (with the default configs). But such new installs rarely work.

Roudcube successfully connects and sends emails through localhost. At the same time, external clients are unable to send emails through SMTP. The issues is…

Emails not visible on freshly installed CentOS 6 with Virtualmin

Main symptom of a problem is that emails are visible in the Read User Mail utility in Webmin but they do not show up in either webmail (Roundcube/Squirrelmail), Usermin or any email client configured to connect to the server.

After further inspection, it appears the emails get delivered to /var/mail/usermailbox@domain.tld instead of /home/username/homes/usermailbox/Maildir.

Setting up guest wireless access on Tomato

Guest wireless access is handy when you want to separate guest devices (your friends’ phones and laptops) from your own devices connected to the main network.

To get started, you need a router capable of guest wireless (not every router can do this) already set up and running either DD-WRT or Tomato. This tutorial explains how to set up a router running Tomato that is used only as access point (WAN is disabled/unplugged).

Recover from a broken rpmdb and missing rpm/Packages in CentOS

One can never have too many backups. There’s always room for one more backup. Backups are what keep computers running (most of the time)… Except when backups are not set up. At all. Not even a single antiqued copy exists of what broke down…

Let’s imagine that worst case scenario. Let’s imagine…

Passwords/accounts don’t work after migrating Thunderbird profile from Linux to Windows

The thing I love about Thunderbird (and its sibling Firefox) is that to transfer a wholly configured instance from one computer/system to another all one needs is to copy over the contents of the profile folder.

However, on the path of a Linux to Windows migration I discovered the oddity that Thunderbird will neither connect to mail server not prompt for password…

Alert via SMS on power failure and hibernate the system

When using a system to host your important (or critical) operations, being able to get informed of issues while you’re away is a very handy function. Email is good for notifications, but it isn’t always fast enough (and constant checks drain battery power).

SMS on the other hand, is an almost instant alert method and although length-limited, should do the job just fine for those very important, must have alerts. For this setup you will need…

Quickly limiting access to php scripts using .htaccess

Sometimes one needs to quickly block access to offending scripts – like for instance when a site has been hacked and malicious files have been uploaded to the account and are used to send out spam emails.

Apache provides a simple way to block out files from being accessible to visitors. And as most intrusions involve directly access hacked php files, the bit below will do wonders at blocking out those direct calls while leaving the main site fully functional (sort of).

Running VirtualBox headless via web interface on CentOS

I’ve been searching for a headless VM manager for running and managing virtual machines on Linux.

VirtualBox seems the best solution for the task so far, as it is capable of running headless on Linux and has an (unofficial but great) web interface to manage it.