After installing Apache I like to immediately customize the default access log. I change the default log file from other_vhosts_access.log to access.log, and I disable logging of specific “status” check URLs. Note I’m working on Ubuntu, other distros could have different file names and paths.… Continue reading “Customizing Apache default access log”
Quick tips for common .htaccess rules.
No lengthy descriptions, just a bunch of handy code snippets.
PowerDNS uses a database backend by default (e.g. MySQL). Simply do a database dump of the configured database and you’ll have a snapshot of all zones for easy recovery. It is recommend to dump the database to backup on a regular basis so that you can recover in case of a server crash.… Continue reading “PowerDNS Zone backups”
Here is a handy bash script for configuring static networking on a Linode server. This script works for Ubuntu 18.04 or later and assumes the server has been booted up with the Network Helper enabled, which is the default for Linode servers.… Continue reading “Linode Static Networking Configurator”
Apache mod_macro can be used to simplify Apache configurations on servers with large number of identically configured VirtualHosts.
Create your macro configuration. In this example we create two macros, one for http & one for https. You should only enable one of these, and if https is enabled http is automatically redirected to https.… Continue reading “Using Apache mod_macro”