# Category: Technology

## Configuring nagios checks over SSH

I had to do a lot of fiddling before I got nagios over ssh working. I used this article as source, mostly, even though I did it differently. Read More »

## Dropping all Linux disk cache

 sync; echo 3 > /proc/sys/vm/drop_caches  Read More »

## Making apache log files world readable

Just chmod the dir, and to make sure rotated files are also readable, change /etc/logrotate.d/apache2. The mask is defined in there. Read More »

## Show privileges for mysql users

(source) To show one users privilges in mysql: Read More »

## Apache rewrite rule to rewrite to sub dir

One one particular site, I wanted to rewrite all requests to a sub dir. It took me over an hour, because of some obscure problem I haven't been able to identify. Read More »

## Working with a postfix mail queue

Some useful commands when working with a postfix mailqueue: "postsuper -r ALL". Requeues all messages. "postcat [file]". Views queue files in /var/spool/bla. "postqueue". Deal with queue. Read More »

## Rewrite rules to redirect to a temporary offline page

Sometimes you want to take a site offline for a while. You can put this in .htaccess or the vhost config: Read More »

## Enabling authentication and SSL for Postfix on Debian

I used this document as main source. This blogpost is also useful. Read More »

## Configuring thunderbird to put date of original message above quote

To put "on [date] x wrote" instead of "x wrote" above a quote, set the mailnews.reply_header_type param to 2.