Debugging lighttpd.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 10 Dec 2015 19:49:49 +0200
changeset 1805 9fc85bbfb183
parent 1804 513a1117ccec
child 1806 215f96a767ed
Debugging lighttpd.
lighttpd.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lighttpd.rst	Thu Dec 10 19:49:49 2015 +0200
@@ -0,0 +1,27 @@
+.. -*- coding: utf-8; -*-
+.. include:: HEADER.rst
+
+===========
+ Lighttpd.
+===========
+.. contents::
+
+Debugging lighttpd.
+===================
+
+Checking configuration file::
+
+  $ lighttpd -t -f /etc/lighttpd/lighttpd.conf
+
+Add to config::
+
+  server.errorlog = "/var/log/lighttpd/error.log"
+
+  debug.log-response-header = "enable"
+  debug.log-request-handling = "enable"
+
+To debug CGI (see ``stderr`` from CGI script)::
+
+  server.breakagelog = "/var/log/lighttpd/cgi.log"
+
+