This is great work, but I've been running into issues with your write-up. I tried posting them to your blog, but I'm not sure if they are in moderator limbo or what. So, for other users:
In the section on vhosts, I found that I needed to chown the log folder in order to restart lighttpd:
Code:
chown www-data:www-data ~/public_html/logs/*
Also if you plan to set-up hosting for friends on your server or you want to run Wordpress, take a look here:
http://www.pureroon.co.uk/2009/02/05/how-to-get-ubuntu-804-server-running-lighttpd-ready-for-the-mighty-wordpress/In the section on iptables, the easyfwgen site that is recommended to generate rules does not work in Ubuntu -- they were written for Red Hat. I'm sure modifying them for Ubuntu is trivial, but I was not able to get those rules to work, so I used the basic rules provided here:
http://www.iheartlinux.com/2008/12/02/basic-iptables-configuration/In addition, the line to save your rules:
Code:
sudo iptables-save > /etc/iptables.up.rules
will not work. Instead, use:
Code:
sudo sh -c "iptables-save > /etc/iptables.up.rules"
Thanks for the great tutorial!