A
I'm having some problems getting the 'Use Client IP Header' to work.
I have nginx on the front-end to proxy requests to LiteSpeed on the same server. On nginx I have enabled:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
and I can confirm by viewing phpinfo.php that the following two headers are correctly amended with the corrent user's IP:
_SERVER["HTTP_X_FORWARDED_FOR"]
_SERVER["HTTP_X_REAL_IP"]
on LiteSpeed I have enabled the option to use the client IP in Header, but it still only logs requests as 127.0.0.1.
Any idea as to what I'm doing wrong?
I have nginx on the front-end to proxy requests to LiteSpeed on the same server. On nginx I have enabled:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
and I can confirm by viewing phpinfo.php that the following two headers are correctly amended with the corrent user's IP:
_SERVER["HTTP_X_FORWARDED_FOR"]
_SERVER["HTTP_X_REAL_IP"]
on LiteSpeed I have enabled the option to use the client IP in Header, but it still only logs requests as 127.0.0.1.
Any idea as to what I'm doing wrong?