wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
106
34
78
Greece
cPanel Access Level
DataCenter Provider
I'm experiencing the same issue after updating to v58 and/or EA4 as well (not sure what caused it). The LogFormat change from %h to %a will not stick anymore - it was working fine before that.

Even after using /usr/local/cpanel/bin/apache_conf_distiller --update and regardless of whether I edit /var/cpanel/conf/apache/main or /usr/local/apache/conf/httpd.conf, as soon as I run /scripts/rebuildhttpdconf %a is changed back to %h and my logs start showing Varnish's IP again.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

You should be able to complete the following steps to modify the entry:

1. Copy the Apache 2.4 template for EasyApache 4 to allow for customization:

Code:
cp -a /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local
2. Edit /var/cpanel/templates/apache2_4/ea4_main.local to change the entry:

Code:
vi /var/cpanel/templates/apache2_4/ea4_main.local
3. Save the changes, and then run:

Code:
/scripts/rebuildhttpdconf
Let us know if this helps.

Thank you.