Recently I faced wearied scenario where I am unable to view access logs of lighttpd.
Even though after adding accesslog.filename = “/var/log/lighttpd/access.log” line in lighttpd.conf file logs are not getting updated in lighttpd.conf file
After debugging for a while I seen following error in /var/log/lighttpd/error.log:
WARNING: unknown config-key: accesslog.filename (ignored)
To fix this issue I adding “mod_accesslog” to servers.modules in lighttpd.conf file & restarted lighttpd. After that issue got resolved.
Following is my server.modules after adding mod_accesslog:
server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", "mod_accesslog", "mod_rewrite", )