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 Restart Linux Server from Command Line
How to Change Wifi Password in Ubuntu Terminal
How to Use Key-Value Dictionary in Shell Script
How to Grep Multiple Strings, Patterns & Words
How to Download File to Directory with Wget
How to Convert RPM to DEB files in Linux
How to Make POST Request with cURL
How to Do Port Forwarding in Raspberry Pi

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