logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Log Format load balancer ip
Author
wesma33



Joined: 17 Dec 2018
Posts: 4
Location: US, Charleston

PostPosted: Wed 09 Oct '19 20:45    Post subject: Log Format load balancer ip Reply with quote

I need to get the load balancer ip and remote-host ip. I am doing the below but it gives me unknown where the second ip should be. Why is that and what can I do to fix it?

remote-host (can possibly have proxy servers listed)
load-balancer-ip

"%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6661
Location: Germany, Next to Hamburg

PostPosted: Mon 14 Oct '19 18:54    Post subject: Reply with quote

You can use mod_remoteip

See https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

if you still have a question please ask again
Back to top


Reply to topic   Topic: Log Format load balancer ip View previous topic :: View next topic
Post new topic   Forum Index -> Apache