LoginSignup
5
5

More than 5 years have passed since last update.

AWS ELBを中継するときにapache2.4ログのIPアドレスがELBのIPになる問題

Last updated at Posted at 2016-07-24

apacheのログのIPがELBのIPになってしまう問題を解決します。

httpd.confにRemoteIPHeader X-Forwarded-Forを記述
ログのフォーマットの%hになっているところを%aに変える。

/etc/init.d/httpd {start|reload|restart}

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5