diff --git a/entrypoint.sh b/entrypoint.sh index e970d34c9..85870234e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,5 +14,7 @@ if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/assets/config.yml" ]]; then if [[ $? -ne 0 ]]; then echo "Fail to copy default config file. $PERMISSION_ERROR" && exit 1; fi fi +chmod a+w /dev/pts/0 + echo "Starting webserver" exec lighttpd -D -f /lighttpd.conf diff --git a/lighttpd.conf b/lighttpd.conf index fa0cfb29f..99006ec7d 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -1,7 +1,7 @@ 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" @@ -9,3 +9,5 @@ alias.url = ( env.SUBFOLDER => "/www" ) server.indexfiles = ("index.html") server.follow-symlink = "enable" server.feature-flags += ( "server.clock-jump-restart" => 0 ) +server.errorlog = "/dev/pts/0" +accesslog.filename = "/dev/pts/0"