Skip to content

cdaringe/httpd-log-formatting-biff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

problem

timestamp formatting does not work in httpd.

see: https://stackoverflow.com/posts/47997641

demo

the only change to the httpd conf file is the addition of the custom log formats.

for example:

ErrorLogFormat "{\
\"level\": \"%l\",\
...
\"timestamp\":\"%{<some-strftime-format>}t\"\
}"

to run, simply use the command:

docker run \
  -v `pwd`/http.alpine.conf:/usr/local/apache2/conf/httpd.conf \
  -dit httpd:2.4.29-alpine

this will run and fail, expectedly. you just need to observe the logs, specifically how the time formatting is not honored.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published