Lighttpd | access log

lighttpd

Lighttpd have an access log module, but it’s disabled by default.

Activate access log
To activate it, you have to modify the configuration file:
“/etc/lighttpd/lighttpd.conf”

Where you have to activate the mod_accesslog module:

server.modules = (

“mod_accesslog”,


)

And define the access log path, exemple:

 accesslog.filename             = “/var/log/lighttpd/access.log”

Reading the log
The log will be written in the defined file. Every week, the file will be saved as “access.log.2.gz” and a new “access.log” file will be created.

Leave a Reply

Your email address will not be published. Required fields are marked *