Lighttpd Fails to Bind to Localhost

I installed the web server lighttpd
on my laptop to test some configuration settings. As I didn't want to expose
the server on the network, I uncommented
server.bind = "localhost"
from
/etc/lighttpd/lighttpd.conf
.
Then, restarting lighttpd failed with the following error:
getaddrinfo failed: Name or service not known ' localhost '