Hello,
I install hestiaCP and diferents domains, I have a nginx proxy manager, but all petitions to hestia is received from the proxymanager local IP, but I need the real IP.
with a phpinfo I can see the real IP
But in the logs from website I only see the proxy manager IP.
I try modify the /etc/nginx/conf.d/domains/domain.conf with diferents options but nothing it works.
Can someone help me regarding this?
Thanks so much.
I modify de nginx.conf with that:
# Proxy settings
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
and restarted nginx, but dont resolve that problem.
I solved that with this:
# Proxy settings
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
set_real_ip_from IP PROXY MANAGER;