Using hitch with varnish on Debian Jessie

I ended up needing to install hitch on a server recently, so the https:// traffic could be routed through Varnish (along with the existing ‘http’ stuff) for performance reasons. The server only runs WordPress sites, so there are WordPress specific things in the Varnish configuration (vcl) file below. Versions: Varnish 5.2, Hitch 1.4.4, Apache 2.4 and… Continue reading Using hitch with varnish on Debian Jessie

postsrsd monit config

This might work to configure monit on Debian (Jessie) to monitor postsrsd. check process postsrsd matching “/usr/sbin/postsrsd” group postsrsd start program = “/etc/init.d/postsrsd start” stop program = “/etc/init.d/postsrsd stop” if failed host localhost port 10001 then restart if failed host localhost port 10002 then restart

compiling a vanilla kernel to a .deb

As I keep losing this…. Creating a .deb kernel package from a vanilla kernel.org kernel : wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.24.tar.xz tar -xf linux-4.4.24.tar.xz cd linux-4.4.24 cp /boot/config-whatever .config Optionally: edit and set: CONFIG_DEBUG_INFO=n to stop the *dbg* package being generated make olddefconfig make deb-pkg -j6 LOCALVERSION=-dg1

Published
Categorized as debian, linux

dotdeb – apt package pinning

As of last night, Debian Security released PHP 5.4.44 for Wheezy. Wheezy shipped with PHP 5.4.12 or something like that. DotDeb is currently on 5.4.43, and if you’ve been using it based on the assumption that it has a newer version of a package over Debian, then an upgrade will leave your PHP install in… Continue reading dotdeb – apt package pinning

Published
Categorized as debian, php

varnish throttling

I came across the varnish throttle module the other day – which seems quite useful – and certainly gives better control over abusive requests than using fail2ban (in that, only specific URLs/request types can be targeted and blocked with the throttle module, while fail2ban tends to trigger the blocking of any traffic from a client… Continue reading varnish throttling