Added by gstrauss about 6 years ago
How can I send access logs to stdout in a container?
Answer: duplicate stdout on fd 3 prior to starting lighttpd and configure lighttpd mod_accesslog to use /dev/fd/3
#!/bin/sh exec 3>&1 lighttpd -D -f /etc/lighttpd/lighttpd.conf
server.modules += ("mod_accesslog") accesslog.filename = "/dev/fd/3"