Incorrect IP Address Deducted by Nginx version: nginx/1.2.1

sivakr nginx-forum at nginx.us
Wed Feb 19 17:02:04 UTC 2014


Hi BR,

          www.whatismyip.com shows 115.1x8.3x.37 , Apache shows
115.1x8.3x.37

          But nginx shows 210.55.x.x

         Server Setup like follows

         Nginx on Port 80 backend FastCGI Php

         Apache on Port 8080

         nginx conf

user www-data;
worker_processes  4;
worker_rlimit_nofile 204800;
error_log  /var/log/nginx/error.log;
pid        /var/run/nginx.pid;

events {
    worker_connections  65535;
    multi_accept on;
}

http {

	#include       /etc/nginx/mime.types;

    access_log	/var/log/nginx/access.log;
    geoip_country /usr/share/GeoIP/GeoIP.dat;

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	server_tokens off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;
        gzip_static on;
        gzip_vary on;
        gzip_comp_level 6;
        gzip_proxied any;
        gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript application/javascript text/x-js;
        gzip_buffers 16 8k;

        gzip_disable "MSIE [1-6]\.(?!.*SV1)";
	##
	# nginx-naxsi config
	##
	# Uncomment it if you installed nginx-naxsi
	##

	#include /etc/nginx/naxsi_core.rules;

	##
	# nginx-passenger config
	##
	# Uncomment it if you installed nginx-passenger
	##
	
	#passenger_root /usr;
	#passenger_ruby /usr/bin/ruby;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247736,247743#msg-247743



More information about the nginx mailing list