thttpd is a very handy, tiny webserver. I use it extensively to serve static files from ad-hoc directories.
However, thttpd is removed from ubuntu’s precise pangolin. It does not even compile. The workaround is to use busybox’s httpd module.
sudo apt-get install busybox busybox httpd -p 9090 -v -f -h ~/public_html