diff options
| author | saturneric <[email protected]> | 2025-11-07 23:35:45 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-07 23:35:45 +0000 |
| commit | 587fb1a87b09d48f5d014747ee59ae5e84e3d4d2 (patch) | |
| tree | 97355ba9742b2a6905691377cb846662c1822437 | |
| parent | feat(filters): add `--inline-css` to syntax highlighting (diff) | |
| download | cgit-587fb1a87b09d48f5d014747ee59ae5e84e3d4d2.tar.gz cgit-587fb1a87b09d48f5d014747ee59ae5e84e3d4d2.zip | |
feat(logging): enable access logging to stderr
* Add `mod_accesslog` module and configure access log output to `/dev/stderr`
* Improve monitoring and debugging by logging HTTP access in standard format
* Enhance visibility for requests and server activity during runtime
| -rw-r--r-- | lighttpd.conf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lighttpd.conf b/lighttpd.conf index dadabeb..65ece20 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -2,10 +2,14 @@ server.port = 80 server.document-root = "/usr/share/webapps/cgit" index-file.names = ( "cgit.cgi" ) -server.modules += ( "mod_access", "mod_alias", "mod_cgi", "mod_rewrite", "mod_proxy" ) +server.modules += ( "mod_access", "mod_alias", "mod_cgi", "mod_rewrite", "mod_proxy", "mod_accesslog" ) cgi.assign = ( ".cgi" => "" ) mimetype.assign = ( ".css" => "text/css" ) +# log to stderr +accesslog.filename = "/dev/stderr" +accesslog.format = "%h %V %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\" %T" + # reserve proxy for gitea git service $HTTP["url"] =~ "^/(.+?)\.git/(info/refs|git-upload-pack)$" { $HTTP["request-method"] !~ "^(GET|POST)$" { |
