Custom user data being included in httpd.conf in EA4

verdon

Well-Known Member
Nov 1, 2003
919
12
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
Hi,

I 'seem' to be having an issue with custom user data includes, actually being included in the httpd.conf. Specifically, I use 'ConfigServer ModSecurity Control' for whitelisting the occasional modsec rule, for specific domains... has always worked in the past.

I have verified that it is creating the files
/etc/apache2/conf.d/userdata/std/2_4/username/modsec.conf
/etc/apache2/conf.d/userdata/ssl/2_4/username/modsec.conf

and I have verified that it is adding the line to the virtual domain container
Include "/etc/apache2/conf.d/userdata/std/2_4/username/*.conf"

and it seems to be restarting apache, but I don't believe the contents of /etc/apache2/conf.d/userdata/std/2_4/username/modsec.conf are actually being included.

Can anyone suggest a way I can verify what's going on?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463

verdon

Well-Known Member
Nov 1, 2003
919
12
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
Thanks @cPanelMichael,

I did find a simple test case and was able to verify that ConfigServer's wonderful tool is indeed working as expected. My client must have had something else going on, that I haven't been able to reproduce yet.

That said, I'd still be interested if anyone knew a reliable means to get the complete content (including the content of all includes) from the currently loaded httpd configuration.
 

verdon

Well-Known Member
Nov 1, 2003
919
12
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
It's a good post. Unfortunately, the python script mentioned in it looks like a good idea but doesn't work. I'll have to see if I can learn enough python to figure out why ;-) ;-) It looks pretty straight fwd.