1805
|
1 |
.. -*- coding: utf-8; -*-
|
|
2 |
.. include:: HEADER.rst
|
|
3 |
|
|
4 |
===========
|
|
5 |
Lighttpd.
|
|
6 |
===========
|
|
7 |
.. contents::
|
|
8 |
|
1834
|
9 |
Documentation.
|
|
10 |
==============
|
|
11 |
|
|
12 |
https://redmine.lighttpd.net/projects/lighttpd/wiki
|
|
13 |
Official docs.
|
|
14 |
https://wiki.archlinux.org/index.php/Lighttpd
|
|
15 |
Arch wiki.
|
|
16 |
|
1805
|
17 |
Debugging lighttpd.
|
|
18 |
===================
|
|
19 |
|
|
20 |
Checking configuration file::
|
|
21 |
|
|
22 |
$ lighttpd -t -f /etc/lighttpd/lighttpd.conf
|
|
23 |
|
1834
|
24 |
To enable logging add to config::
|
1805
|
25 |
|
1806
|
26 |
accesslog.filename = "/var/log/lighttpd/access.log"
|
1805
|
27 |
server.errorlog = "/var/log/lighttpd/error.log"
|
|
28 |
|
|
29 |
debug.log-response-header = "enable"
|
|
30 |
debug.log-request-handling = "enable"
|
|
31 |
|
|
32 |
To debug CGI (see ``stderr`` from CGI script)::
|
|
33 |
|
|
34 |
server.breakagelog = "/var/log/lighttpd/cgi.log"
|
|
35 |
|
|
36 |
|