summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-11 14:52:25 +0200
committermh <mh@immerda.ch>2010-08-11 14:52:25 +0200
commitab8615d05df97e6f8fd9c0b1bdbcf7439d8b8b0e (patch)
tree04b43a81f2804a37014130fd4525ff934b664901 /templates
parente563c5add3e02758c128fe6b5df31ea65f393f54 (diff)
introduce logmode for webrepos
Diffstat (limited to 'templates')
-rw-r--r--templates/web/lighttpd4
1 files changed, 4 insertions, 0 deletions
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",