Site icon 지락문화예술공작단

apache 2.4 mod_remoteip for get real ip on AWS ELB

1. Load Module

<IfModule mod_remoteip.c>
RemoteIPHeader X-Forwarded-For
</IfModule>

 

2. Change Log Format

If using ”common”

ORG : LogFormat ”%h %l %u %t \”%r\” %>s %b” common

CHANGE : LogFormat ”%a %l %u %t \”%r\” %>s %b” common

changet ”%h” to ”%a”

Exit mobile version