Sign inSign up

d3klym/nginx_logging_headers

By d3klym

•Updated over 4 years ago

NGINX + Logging HTTP HEADERS module

Image
0

839

d3klym/nginx_logging_headers repository overview

⁠NGINX + Logging HTTP HEADERS module

Debugging HTTP request headers

⁠Usage

⁠1. Run container
docker run -d --name ngx_log -p 8888:80 d3klym/nginx_logging_headers:latest
⁠2. Follow logs
docker logs ngx_log -f
⁠3. Send test request
curl localhost:8888 -H "TEST-HEADER:TEST_VALUE"
⁠4. See results
172.17.0.1              14/Apr/2022:20:25:29 +0000      GET / HTTP/1.1  200             {\"Host\":\"localhost:8888\",\"User-Agent\":\"curl/7.79.1\",\"Accept\":\"*/*\",\"TEST-HEADER\":\"TEST_VALUE\"}```

Tag summary

Content type

Image

Digest

Size

54.1 MB

Last updated

over 4 years ago

docker pull d3klym/nginx_logging_headers