lighttpd.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 10 Dec 2015 19:53:37 +0200
changeset 1806 215f96a767ed
parent 1805 9fc85bbfb183
child 1834 c10a645a08fc
permissions -rw-r--r--
accesslog.filename
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
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Debugging lighttpd.
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
===================
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
Checking configuration file::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  $ lighttpd -t -f /etc/lighttpd/lighttpd.conf
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
Add to config::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
1806
215f96a767ed accesslog.filename
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1805
diff changeset
    18
  accesslog.filename = "/var/log/lighttpd/access.log"
1805
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
  server.errorlog = "/var/log/lighttpd/error.log"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
  debug.log-response-header = "enable"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
  debug.log-request-handling = "enable"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
To debug CGI (see ``stderr`` from CGI script)::
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
  server.breakagelog = "/var/log/lighttpd/cgi.log"
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
9fc85bbfb183 Debugging lighttpd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28