mod_rpaf enabled; still apache log showing 127.0.0.1 as source !!

Joydeep Bakshi joydeep.bakshi at netzrezepte.de
Mon Apr 28 13:33:28 UTC 2014


Hello list,

To get the wan IP in apache log I have already enabl mod_rapf in opensude
server.

# a2enmod rpaf mod_rpaf
"rpaf" already present

 a2enmod  mod_rpaf
"mod_rpaf" already present

Here is a nginx vhost section for passing IP to apache log

[......]
  proxy_redirect off; # Do not redirect this proxy - It needs to be
pass-through
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Server-Address $server_addr;
  proxy_pass_header Set-Cookie;
[......]

After restarting both apache and nginx, the apache log for that specific
vhost still showing 127.0.0.1 as source IP at apache log.

Am I missing something ?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140428/d28b77d8/attachment.html>


More information about the nginx mailing list