Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.03 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.03 KB

mod_log_header_size

An Apache module that provides % directives for logging the size (in bytes) of request and response headers.

Why?

Intermediaries may impose limits on the amount of bytes that are allowed in the request or response headers. As a result, it is a good idea to monitor the size amount of bytes being transferred in the request and response headers. This module allows you to log this information, which you later process with an application of your choice.

Installation

git clone [email protected]:mpchadwick/mod_log_header_size.git
cd mod_log_header_size
apxs -i -a -c mod_log_header_size.c

Usage

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %^IH %^OH" combinedheaderio
CustomLog "/var/log/httpd/access_log" combinedheaderio
  • %^IH - Request header bytes
  • %^OH - Response header bytes

Compatibility

Works on both Apache 2.4 and 2.2.