From ab8615d05df97e6f8fd9c0b1bdbcf7439d8b8b0e Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 11 Aug 2010 14:52:25 +0200 Subject: introduce logmode for webrepos --- templates/web/lighttpd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') diff --git a/templates/web/lighttpd b/templates/web/lighttpd index 1153154..57acb2e 100644 --- a/templates/web/lighttpd +++ b/templates/web/lighttpd @@ -3,6 +3,10 @@ $HTTP["host"] == "<%= gitweb_url %>" { "^$" => "/", ) + <%- if logmode.to_s == 'anonym' -%> + accesslog.format = "127.0.0.1 %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" + <%- end -%> + alias.url += ( "/gitweb.css" => "/var/www/git/gitweb.css", "/git-logo.png" => "/var/www/git/git-logo.png", -- cgit v1.2.3