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”

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.