FAQ: Client IP Header Logging on a Web Server

FAQ: Client IP Header Logging on a Web Server

book

Article ID: CTX109730

calendar_today

Updated On:

Description

Q: Is it possible to extract a client IP header for logging on a web server?

A: Yes. If you use "Client-IP" as the header to send the client IP information, then change the following settings, as required:

  • In Apache web server 2.x, edit the "customLog" file to replace the %a (remote IP) or %h (remote host) parameter with %{Client-IP}i parameter.

  • In iPlanet application server, edit the "magnus.conf" file. Search the "flex-init" function. This function has three parameters, the first is the log file name, the second is the format of the log file, and the third is the logging mode. In the second parameter, replace %Ses->client.ip% with %Req->headers.client-ip%. "Client-IP" header should be specified on the NetScaler with the integration of iPlanet web server.

    Issue/Introduction

    This article contains an FAQ on client IP header logging on a web server.