Skip to content

Index

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 »

Exim cheatsheet

Lazy blogging today.

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.

Read More »

Preventing IOerror on stdout with modWSGI

By default, you can't use prints in a django app, because mod_wsgi restricts that. You can change that by putting this in your configuration: Read More »

Changing an apache virtual host to ssl

To change a virtual host in apache to ssl: #Redirect all normal traffic to the https site. RewriteEngine on RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R] Read More »