Hi,
I am using OLS as a proxy for speed and security. Today we noted that no real IP gets logged in access log or error.
How to log actual IP for the visitor ? Apache logs showing
127.0.0.1 - - [11/Jan/2020:19:23:27 +0530] "GET /category/pizza HTTP/1.1" 200 93484
127.0.0.1 - - [11/Jan/2020:19:23:28 +0530] "GET /cdn/recipes/marwaelmanawy-i-cheef-recipe-19.jpg HTTP/1.1" 200 28872
127.0.0.1 - - [11/Jan/2020:19:23:29 +0530] "GET /category/ice-cream2 HTTP/1.1" 200 57692
127.0.0.1 - - [11/Jan/2020:19:23:31 +0530] "GET /category/bread HTTP/1.1" 200 57660
127.0.0.1 - - [11/Jan/2020:19:23:33 +0530] "GET / HTTP/1.1" 200 127274
I am using OLS as a proxy for speed and security. Today we noted that no real IP gets logged in access log or error.
How to log actual IP for the visitor ? Apache logs showing
127.0.0.1 - - [11/Jan/2020:19:23:27 +0530] "GET /category/pizza HTTP/1.1" 200 93484
127.0.0.1 - - [11/Jan/2020:19:23:28 +0530] "GET /cdn/recipes/marwaelmanawy-i-cheef-recipe-19.jpg HTTP/1.1" 200 28872
127.0.0.1 - - [11/Jan/2020:19:23:29 +0530] "GET /category/ice-cream2 HTTP/1.1" 200 57692
127.0.0.1 - - [11/Jan/2020:19:23:31 +0530] "GET /category/bread HTTP/1.1" 200 57660
127.0.0.1 - - [11/Jan/2020:19:23:33 +0530] "GET / HTTP/1.1" 200 127274