Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Aug 19 '11 at 17:04

This question came from our site for professional and enthusiast programmers.

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.