Welcome! Log In Create A New Profile


On proxy my nginx show wrong ip (private)

November 23, 2010 01:45PM
Hello, Im using FreeBSD and jail. I have main nginx server in jail (ip Second www server is apache22 (

Port 80 from is forwarding to public IP.

Problem is in this that php scripts from apache ( showing client IP from nginx ( For example: phpBB showing on line users and ips

Its my settings in nginx (
--- START---
server {
listen 80;
server_name www.skuter-forum.pl skuter-forum.pl;
access_log /var/log/nginx/skuter-forum.pl.access.log;

if ($host = 'www.skuter-forum.pl' ) {
rewrite ^/(.*) http://skuter-forum.pl/$1 permanent;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;

--- END ---

How set real clients ips?
Subject Author Posted

On proxy my nginx show wrong ip (private)

dong November 23, 2010 01:45PM

Re: On proxy my nginx show wrong ip (private)

Francis Daly November 23, 2010 07:54PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
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