Skip to content

Commit

Permalink
Update lighthttpd to add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-brousse committed Mar 14, 2023
1 parent d362add commit d80cc37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/assets/config.yml" ]]; then
fi

echo "Starting webserver"
exec lighttpd -D -f /lighttpd.conf
exec lighttpd -D -f /lighttpd.conf 2>&1
4 changes: 3 additions & 1 deletion lighttpd.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
include "/etc/lighttpd/mime-types.conf"

server.port = env.PORT
server.modules = ( "mod_alias" )
server.modules = ( "mod_alias", "mod_accesslog" )
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = "/www"
alias.url = ( env.SUBFOLDER => "/www" )
server.indexfiles = ("index.html")
server.follow-symlink = "enable"
server.feature-flags += ( "server.clock-jump-restart" => 0 )
server.errorlog = "/dev/stderr"
accesslog.filename = "/dev/stderr"

0 comments on commit d80cc37

Please sign in to comment.