After installing ea-nginx, I've noticed that I've lost $ENV{'REMOTE_ADDR'} in Perl (or rather it just shows me the server's IP address and I can't grep my way through the server's Apache error_log because there are no IP Addresses recorded. Is there a cPanel officially supported way to fix this?
I found this article on how to adjust the NGINX and Apache settings to properly forward IP addresses for Apache logging (and maybe this would help with REMOTE_ADDR, too?) but I can't figure out how to implement it in a way that doesn't require me to interact with parts of Apache's configuration that cPanel will overwrite. Hopefully there is an official way to fix this?
Thanks!
I found this article on how to adjust the NGINX and Apache settings to properly forward IP addresses for Apache logging (and maybe this would help with REMOTE_ADDR, too?) but I can't figure out how to implement it in a way that doesn't require me to interact with parts of Apache's configuration that cPanel will overwrite. Hopefully there is an official way to fix this?
Thanks!
Last edited by a moderator: