Welcome! Log In Create A New Profile

Advanced

Re: getting ip address from fastcgi for Wordpress plugin

Maxim Dounin
March 29, 2011 04:46AM
Hello!

On Mon, Mar 28, 2011 at 10:21:31PM -0400, toddlahman wrote:

> I am running a Redhat EL5 server using Nginx 0.8.54 on the frontend,
> with Apache 2.2.3 on the backend and mod_rpaf to forward the IP address
> to be used in filtering spam from Wordpress comments using the Spam Free
> Wordpress plugin. (http://www.toddlahman.com/spam-free-wordpress/)
>
> I would like to use fastcgi to serve PHP, but I am not aware of any way
> for fastcgi to forward the visitor's IP address like mod_rpaf does for
> Apache for use by my Wordpress plugin.

In fastcgi visitor's ip address is always passed to application
with appropriate fastcgi params. Bundled fastcgi_params file have
them properly set:

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready