( Dacr | 2016. 05. 21., szo – 21:41 )

[root@mail httpd]# /usr/sbin/apachectl -M | grep remoteip
[Sat May 21 19:38:44.135439 2016] [so:warn] [pid 4838] AH01574: module remoteip_module is already loaded, skipping
remoteip_module (shared)

# set REMOTE_ADDR to the client's IP instead of the proxy's IP
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 192.168.122.1

# set HTTPS if the original request was a HTTPS request
SetEnvIf X-Forwarded-Proto "^https$" HTTPS

LogFormat "%a %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined