Gallery 1.6 on Lighttpd
From Wiki
Installing gallery 1.6 on lighttpd is fairly straight forward, you only need to make a few changes to get it working.
I haven't been able to get the rewrite rules for lighttpd.conf to work with gallery so rewrites need to be turned off. Edit config.php and make this change:
$gallery->app->feature["rewrite"] = 0;
After that is done you'll need to rename the default css files so that Firefox doesn't ignore them.
cd public_html/gallery/css rename *.css.default *.css