lighttpd.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1834 c10a645a08fc
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1805
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
.. include:: HEADER.rst
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
===========
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 Lighttpd.
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
===========
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
.. contents::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
1834
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
     9
Documentation.
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    10
==============
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    11
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    12
  https://redmine.lighttpd.net/projects/lighttpd/wiki
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    13
    Official docs.
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    14
  https://wiki.archlinux.org/index.php/Lighttpd
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    15
    Arch wiki.
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    16
1805
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
Debugging lighttpd.
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
===================
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
Checking configuration file::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
  $ lighttpd -t -f /etc/lighttpd/lighttpd.conf
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
1834
c10a645a08fc Documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1806
diff changeset
    24
To enable logging add to config::
1805
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
1806
215f96a767ed accesslog.filename
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1805
diff changeset
    26
  accesslog.filename = "/var/log/lighttpd/access.log"
1805
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
  server.errorlog = "/var/log/lighttpd/error.log"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
  debug.log-response-header = "enable"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
  debug.log-request-handling = "enable"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
To debug CGI (see ``stderr`` from CGI script)::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
  server.breakagelog = "/var/log/lighttpd/cgi.log"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36