I have sites behind a web firewall, so the access logs show that one IP.
I have the firewall configured to use X-Forwarded-For header to relay the real client IP.
I configured a customer userdata config file setting to create the log format.
Following the instructions Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation
And tailing the log, it isn't logging with the new format.
Here's what I have in the userdata config file.
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined-waf
CustomLog /etc/apache2/logs/domlogs/website.com combined-waf
Any ideas?
Thanks,
Chuck
I have the firewall configured to use X-Forwarded-For header to relay the real client IP.
I configured a customer userdata config file setting to create the log format.
Following the instructions Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation
And tailing the log, it isn't logging with the new format.
Here's what I have in the userdata config file.
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined-waf
CustomLog /etc/apache2/logs/domlogs/website.com combined-waf
Any ideas?
Thanks,
Chuck