lighttpd.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Oct 2017 20:50:44 +0300
changeset 2197 5ee52f8d25b5
parent 1912 8b81a8f0f692
child 2228 837f1337c59b
permissions -rw-r--r--
Changing Vagrant home directory.

.. -*- coding: utf-8; -*-

===========
 Lighttpd.
===========
.. contents::
   :local:

Documentation.
==============

  https://redmine.lighttpd.net/projects/lighttpd/wiki
    Official docs.
  https://wiki.archlinux.org/index.php/Lighttpd
    Arch wiki.

Debugging lighttpd.
===================

Checking configuration file::

  $ lighttpd -t -f /etc/lighttpd/lighttpd.conf

To enable logging add to config::

  accesslog.filename = "/var/log/lighttpd/access.log"
  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"