Augeas to add Apache directive TraceEnable

This is a small exercise on Augeas just to add a new directive. I’d like to add TraceEnable On to the configuration.

rm /files/etc/httpd/conf/httpd.conf/*[self::directive='TraceEnable']
ins directive before /files/etc/httpd/conf/httpd.conf/*[self::directive='KeepAlive']
set /files/etc/httpd/conf/httpd.conf/directive[.=""] "TraceEnable"
set /files/etc/httpd/conf/httpd.conf/directive[.="TraceEnable"]/arg "On"


Filip Valder - Aug 0, 2014

Hi. As an example, it’s OK. But for security reasons having “TraceEnable off” is better, isn’t it? Filip

thank you for sharing