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 19694 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.