1

I have nginx running as reverse proxy for apache for my website. The problem I have is that all the logs in apache have 127.0.0.1 as the IP address. I have these set in 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; 

What am I missing?

1 Answer 1

2

Install and configure rpaf module for Apache. For example, see this blog post

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.