Support XFF headers in HTTP streaming requests to Wowza Streaming Engine

The X-Forward-For (XFF) header is a common HTTP header field that is used to identify the IP address from which the streaming request originated. This article describes how to configure Wowza Streaming Engine™ media server software to support XFF headers in these requests.

Note: Support for XFF headers in streaming requests requires Wowza Streaming Engine 4.7.5.02 or later.
  1. In a text editor, open [install-dir]/conf/log4j.properties.
  2. Find log4j.appender.serverAccess.layout.Fields and add x-forward-for to the end of the value, using a comma to separate the new header.
    log4j.appender.serverAccess.layout.Fields=date,time,tz,x-event,x-category,x-severity,x-status,x-ctx,x-comment,x-vhost,x-app,x-appinst,x-duration,s-ip,s-port,s-uri,c-ip,c-proto,c-referrer,c-user-agent,c-client-id,cs-bytes,sc-bytes,x-stream-id,x-spos,cs-stream-bytes,sc-stream-bytes,x-sname,x-sname-query,x-file-name,x-file-ext,x-file-size,x-file-length,x-suri,x-suri-stem,x-suri-query,cs-uri-stem,cs-uri-query,x-forwarded-for

  3. Save your changes and restart Wowza Streaming Engine to apply them.

After you've added support for XFF headers, when an HTTP streaming request with an XFF header is received, the IP address will be visible in the wowzastreamingengine_access.log file.