• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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