I often use ‘netstat –tcp -lpn’ to display a list of open ports on a server – so i can check things aren’t listening where they shouldn’t be (e.g. MySQL accepting connections from the world) and so on. Obviously I firewall boxes; but I like to have a reasonable default incase the firewall decides to… Continue reading netstat –tcp -lp output not showing a process id
If you’ve updated your varnish server’s configuration, there doesn’t seem to be an equivalent of ‘apachectl configtest’ for it, but you can do : varnishd -C -f /etc/varnish/default.vcl If everything is correct, varnish will then dump out the generated configuration. Otherwise you’ll get an error message pointing you to a specific line number.
I found the following Python script online, but it didn’t really work too well : http://aws-musings.com/manage-ebs-snapshots-with-a-python-script/ EBS – Elastic Block Storage … I had to easy_install boto, to get it to work. I’m not sure the Debian python-boto package in Lenny is up to date. Anyway, $server now has : from boto.ec2.connection import EC2Connection from… Continue reading Automated snapshot backup of an Amazon EBS volume
I run multiple Zope instances on one server. Each Zope instance listens on a different port (localhost:100xx). Historically I’ve just used Apache as a front end which forwards requests to the Zope instance. Unfortunately there are periods of the year when one site gets a deluge of requests (for example; when hosting a school site,… Continue reading Varnish + Zope – Multiple zope instances behind a single varnish cache