Documente Academic
Documente Profesional
Documente Cultură
Give Feedback...
Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.
How To Log The X-Forwarded-For HTTP Header Content In the Oracle iPlanet Web Server Access Log (Doc ID To Bottom
1403073.1)
Goal Yes
No
Solution
Document Details
SOLUTION
Document References
Steps for Oracle iPlanet Web Server 7.0: No References available for
this document.
1. Login to the admin server GUI
Recently Viewed
2. Click on the Configuration tab
Unable To Install SSL
3. Click on the configuration name Certificate in Oracle iPlanet
Web Server - "ADMIN4112:
No Private key found"
4. Click on the General tab [1290258.1]
All Java SE Downloads on
5. Click on the "Access Log Preferences" link on the current page MOS [1439822.1]
6. Check the radio button next to the "Custom Log Format" and add %Req->headers.x-forwarded-for% to the format. See the
below screen shot.
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=240829430714091&parent=EXTERNAL_SEARCH&sourceId=HOWTO&id=… 1/3
6/25/2019 Document 1403073.1
1) Click cancel to return to previous page to change the access log File Location, Or
2) Click OK to use the existing file location for the access log. Note: If you choose this option, you would need to delete the
access file after having backed it up so that a new access file will be created upon restart of the server, and the new access log
will have the new logging format in the first line.
<access-log>
<file>../logs/access</file>
<format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req-
>srvhdrs.clf-status% %Req->srvhdrs.content-length% - %Req->headers.x-forwarded-for%</format>
</access-log>
And the access log will have the following in the first line.
5. Under Format section, check the radio button next to "custom format" and add the following to the logging format (see below
screen shot).
%Req->headers.x-forwarded-for%
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=240829430714091&parent=EXTERNAL_SEARCH&sourceId=HOWTO&id=… 2/3
6/25/2019 Document 1403073.1
1) Click cancel to return to previous page to change the access log File Location, Or
2) Click OK to use the existing file location for the access log. Note: If you choose this option, you would need delete the
access file after having backed it up so that a new access file will be created upon restart of the server, and the new access log
will have the new logging format in the first line.
The magnus.conf file will have the following after the change:
And the access log file has the following in the first line:
HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date: Tue, 31 Jan 2012 23:35:02 GMT
Content-length: 13
Content-type: text/plain
Last-modified: Mon, 14 Nov 2011 18:19:46 GMT
Etag: "d-4ec15bc2"
Accept-ranges: bytes
TEST!
^CConnection to localhost closed by foreign host.
Attachments
screenshot01.gif (14.97 KB)
screenshot02.gif (10.59 KB)
screenshot03 (26.36 KB)
Related
Products
Middleware > Application Servers > GlassFish Server > Oracle iPlanet Web Server > Log
Keywords
ADDRESS; ADMIN SERVER; IP ADDRESS; LOG FILE; LOGGING; LOWER CASE; ORACLE IPLANET WEB SERVER; SERVER.XML
Errors
HTTP-200
Back to Top
Copyright (c) 2019, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=240829430714091&parent=EXTERNAL_SEARCH&sourceId=HOWTO&id=… 3/3