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"
save
quit

Comments:

Filip Valder -

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


#### [Risma](https://telkomuniversity.ac.id/ "ritajengnugraheni@student.telkomuniversity.ac.id") -

thank you for sharing