To extract and log the actual client IP address from the X-Forwarded-For header of a request using an Apache server, make the following changes to the server: Log into the Apache server. Go to /etc/httpd/conf or /usr/local/apache2/conf path and open the file httpd.conf . Search for the string: “ LogFormat “%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined ” Change the %h to %{X-Forwarded-For}i . The string now appears as “ LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" " combined ” Save the file and restart apache or httpd.
Extracting the Contents of the EAR To extract the contents of the EAR: Navigate to the directory containing the EAR, ear-file . On the command line, enter the following to view the contents of the EAR: jar tf ear-file On the command line, enter the following to extract the contents of the EAR: jar xf ear-file Updating and Repackaging an EAR File To update a file and repackage the contents into an EAR file: Navigate to the base directory of all the files and folders that are to be part of the EAR. On the command line, enter the following to extract the contents of the EAR: jar cf ear-file input-files For example, jar cf myear.ear *