diff options
Diffstat (limited to 'templates/web/lighttpd')
-rw-r--r-- | templates/web/lighttpd | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/web/lighttpd b/templates/web/lighttpd index 1153154..cf24469 100644 --- a/templates/web/lighttpd +++ b/templates/web/lighttpd @@ -3,10 +3,14 @@ $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", - "/git-favicon.png" => "/var/www/git/git-favicon.png", + "/static/gitweb.css" => "/var/www/git/static/gitweb.css", + "/static/git-logo.png" => "/var/www/git/static/git-logo.png", + "/static/git-favicon.png" => "/var/www/git/static/git-favicon.png", "/" => "/var/www/git/gitweb.cgi", ) |