Hello,
i'm running a seperate server (nginx) as a reverse proxy and when i look on my webserver (plesk+asl) it gives me the ip adres of the nginx server. Not the real ip.
I configured nginx to forward the original ip. Do i have to configure something in asl to make this work.
thank you,
Angelo
Running nginx reverse proxy in front off plesk+asl
Re: Running nginx reverse proxy in front off plesk+asl
You can do this with mod_rpaf, an Apache module that gets the real IP from the "X-Forwarded-For" header.
Lemonbit Internet Dedicated Server Management
Re: Running nginx reverse proxy in front off plesk+asl
thx for the repley
i had the module rpaf loaded, but for centos i had to add this config file and reload apache :
/etc/httpd/conf.d/mod_rpaf.conf
RPAFenable On
RPAFsethostname On
RPAFproxy_ips x.x.x.x (replace with the server ip or the originated reverse proxy ip)
RPAFheader X-Forwarded-For
Hope this helps someone else
i had the module rpaf loaded, but for centos i had to add this config file and reload apache :
/etc/httpd/conf.d/mod_rpaf.conf
RPAFenable On
RPAFsethostname On
RPAFproxy_ips x.x.x.x (replace with the server ip or the originated reverse proxy ip)
RPAFheader X-Forwarded-For
Hope this helps someone else