我有nginx作为我的网站的Apache的反向代理运行。 我遇到的问题是,所有在Apache中的日志都有127.0.0.1作为IP地址。 我有这些设置在nginx.conf
proxy_set_header X-Real-IP $remote_addr; # Set the hostname proxy_set_header Host $host; #Set the forwarded-for header. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
我错过了什么?
为Apache安装和configurationrpaf模块 。 例如,看到这篇博文