Fix running under local lighttpd.
Merge pull request #244 from jsha/fix-local-lighttpd

Fix running under local lighttpd.