Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

The proxy works fine, my distro is Ubuntu 10.04LTS (Server) and rpaf is loaded within apache, with the following settings httpd.conf:

<IfModule mod_rpaf.c>
  RPAFenable On
  RPAFsethostname On

I can be sure it is loaded, for example:

#a2enmod rpaf
Module rpaf already enabled

I had force-reloaded apache, and reloaded nginx but all my connections are still from - - [13/Dec/2010:23:56:27 -0800] "GET /index.php HTTP/1.0" 200 1267 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2010031422 Firefox/3.0.19"

Why is it still localhost from external? I'll give any info if needed.

share|improve this question
up vote 1 down vote accepted

Doublecheck the requests from the proxy contain the x-forwarded-for header, usually that's the problem.

share|improve this answer
How do I check this? I think I can, but am unsure how to check between the two.. – John R. Dec 14 '10 at 8:30
Ah, nevermind, looked at other configs and was missing the forward option completely. Will answer myself -- see other answer for details. Thank you. – John R. Dec 14 '10 at 8:34

Found the problem, in /etc/nginx/sites-available/default I forgot to add the add header lines, my config now looks like so:

location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

And voila!

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.