Lighttpd is a fast, secure, flexible server used for high-speed environments. By default, lighttpd logs all requests to the server. Sometimes you may want to disable Lighttpd access logs. In this short article, we will learn how to disable lighttpd access log.
How to Disable Lighttpd Access Log
Here are the steps to disable Lighttpd access log.
1. Open lighttpd configuration file
Open Lighttpd configuration file in a text editor.
$ sudo vi /etc/lighttpd/lighttpd. conf
2. Disable Access Logging
Look for the following lines
accesslog.filename = "..." AND accesslog.use-syslog = "enable"
You can remove them or comment them by adding # at its beginning
#accesslog.filename = "..." AND #accesslog.use-syslog = "enable"
When you remove or comment the above lines, Lighttpd will stop access logging for you.
3. Restart Lighttpd Server
Restart Lighttpd server with the following command to apply changes.
$ /etc/init.d/lighttpd restart
That’s it. In this short article, we have learnt how to disable access logging in Lighttpd.
Also read:
How to Install Http Server in Raspberry Pi
How to Configure DNS Nameserver in Ubuntu
How to Configure LDAP Client for Ubuntu
How to Copy File to Clipboard in Ubuntu
How to Assign Command Output to Shell Script Variable
Related posts:
How to Create Swap Space in Ubuntu/Debian
How to Compare Two Directories in Linux
How to Delete Write Protected File in Linux
How to Evaluate Expression in Shell Script
How to Save Dictionary to File in Python
How to Check Commands Executed by User in Linux
How to Convert RPM to DEB files in Linux
How to Repair Ubuntu 18.04 from USB

Sreeram has more than 10 years of experience in web development, Python, Linux, SQL and database programming.