custom log settings in userdata conf file not working
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
-
Hello @carock, Did you already install mod_remoteip on this server? If not, you can install it using the following command: yum install ea-apache24-mod_remoteip
Once it's installed, take a look at the instructions/discussion on the following threads for information on the specific entries to add to the Apache configuration: Let us know if this helps. Thank you.0 -
Hello @carock, Did you already install mod_remoteip on this server? If not, you can install it using the following command:
yum install ea-apache24-mod_remoteip
Once it's installed, take a look at the instructions/discussion on the following threads for information on the specific entries to add to the Apache configuration:0 -
Hello @carock, I'm glad to see it worked out. Let us know if you have any additional questions. Thanks! 0
Please sign in to leave a comment.
Comments
3 comments