How to diagnose Internal Server error on Lighttpd?

Edit:

nano /etc/lighttpd/lighttpd.conf

And put:

fastcgi.debug = 1