Real ip issue with nginx

J

JafferyR

Guest
Hi

I have plesk 10, issue is that I installed nginx on it, its working fine, I set apache to listen on port 8080 and set nginx to 80

I then changed port for plesk using :
http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=68800.htm

Now issue is that if I use default config :
Code:
server {
  listen      80;
  server_name domainname.com www.domainname.com ;
  error_log /var/www/vhosts/newcastle-online.org/statistics/logs/error_log.nginx warn;

  location / {
    proxy_pass  http://domainame.com:8080$request_uri;
    include  /etc/nginx/proxy.conf;
  }

  location ~* ^.+\.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|ico|swf)$ {
    root  /var/www/vhosts/newcastle-online.org/httpdocs;
    expires 7d;
  }
 }
This won't work as its unable to resolve domainname.com (found through nginx logs) , I changed IP to website IP ie. xxx.xxx.xxx.xxx and now things are working.

but application are seeing xxx.xxx.xxx.xxx as client ip.
I installed mod_rpaf and can see it working using
Code:
httpd -M

However, still clients application is seeing proxy Ip as visitors IP.

So, what should be setup that mod_rpaf give real ip to software running ..

Basically I need to know why its not able resolve name of host ie nginx ?
 
Back
Top