Unix/Linux Go Back    


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

How to enable x-client-ip address in apache webserver LogFormat?

Web Programming


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 04-27-2017
raghur77 raghur77 is offline
Registered User
 
Join Date: Jun 2009
Last Activity: 26 September 2017, 9:30 AM EDT
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
How to enable x-client-ip address in apache webserver LogFormat?

how to enable x-client-ip address in apache webserver LogFormat
i tried below option, but no luck...

Code:
1. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

2. LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy

3. SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded

4. CustomLog "logs/access_log" combined env=!forwarded

5. CustomLog "logs/access_log" proxy env=forwarded

any help greatly appreciated

Last edited by Don Cragun; 04-27-2017 at 02:09 PM.. Reason: Fix CODE tags.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Apache webserver troubleshooting ajayram_arya Shell Programming and Scripting 12 07-22-2014 12:22 PM
apache webserver url redirection raghur77 UNIX for Advanced & Expert Users 0 02-28-2012 09:11 AM
client authentication in sunone 7.0 webserver pcs.abhishek Web Programming 0 04-07-2010 06:34 AM
apache webserver jo calamine UNIX for Advanced & Expert Users 2 11-14-2006 04:57 PM
Logout Apache WebServer! cipher UNIX for Advanced & Expert Users 1 06-17-2003 05:16 PM



All times are GMT -4. The time now is 11:35 AM.