Welcome! Log In Create A New Profile

Advanced

Re: getting ip address from fastcgi for Wordpress plugin

March 29, 2011 07:04AM
With my current configuration below the IP address is not appearing properly in Wordpress.

In the fastcgi.conf I have:

fastcgi_param REMOTE_ADDR $remote_addr;

In the nginx.conf I have:

upstream php {
server 127.0.0.1:9000;
}

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi.conf;
fastcgi_intercept_errors off;
fastcgi_pass php;
}

cgi.fix_pathinfo = 0; in php.ini

With this I got a blank page when submitting a comment.

I tried adding

fastcgi_pass_header Host;
fastcgi_pass_header X-Real-IP;
fastcgi_pass_header X-Forwarded-For;

Now I get 502 Bad Gateway (Nginx).

What am I missing?
Subject Author Posted

getting ip address from fastcgi for Wordpress plugin

toddlahman March 28, 2011 10:21PM

Re: getting ip address from fastcgi for Wordpress plugin

Maxim Dounin March 29, 2011 04:46AM

Re: getting ip address from fastcgi for Wordpress plugin

toddlahman March 29, 2011 07:04AM

Re: getting ip address from fastcgi for Wordpress plugin

toddlahman March 29, 2011 07:14AM

Re: getting ip address from fastcgi for Wordpress plugin

toddlahman March 30, 2011 04:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready