Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Visitors REAL IP forwarding form NGINX to Apache

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
rnbmafia
Posts: 14
Joined: Sat Apr 18, 2015 4:38 pm

Visitors REAL IP forwarding form NGINX to Apache
  • Quote

Post by rnbmafia » Wed May 20, 2015 5:25 pm

Hello , i've been wondering how to forward REAL IP of visitors to the apache server .. Because right now NGINX is acting like a proxy , and apache is receiving connections from LOCAL IP .... That makes awstats and many more things unusable :)


Tnx in advance :)
Top

dsystem
Posts: 55
Joined: Sun Nov 30, 2014 12:27 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Visitors REAL IP forwarding form NGINX to Apache
  • Quote

Post by dsystem » Thu May 21, 2015 2:09 am

See this topic

viewtopic.php?f=10&t=6650
Top

rnbmafia
Posts: 14
Joined: Sat Apr 18, 2015 4:38 pm

Re: Visitors REAL IP forwarding form NGINX to Apache
  • Quote

Post by rnbmafia » Thu May 21, 2015 2:56 pm

dsystem wrote:See this topic

viewtopic.php?f=10&t=6650
Thank u , this is what ive used to fix my problem


<IfModule rpaf_module>
RPAFenable On

# When enabled, take the incoming X-Host header and
# update the virtualhost settings accordingly:
RPAFsethostname On


# Define which IP's are your frontend proxies that sends
# the correct X-Forwarded-For headers:
RPAFproxy_ips 127.0.0.1 ::1 xxx.xxx.xxx.xxx // where xxx.xxx.xxx.xxx is local server IP

# Change the header name to parse from the default
# X-Forwarded-For to something of your choice:
RPAFheader X-Real-IP

</IfModule>
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password