Hello, I have read that I can add a line such as this:

ErrorLog /home/mydomain/public_html/logdir/myerrorlog

to the Virtualhosts section of httpd.conf for each domain I want to have it's own log file. I did this for a domain, distilled update, and build_apache_conf. The line was then gone. The docs in the file say if that happens, I need to edit the templates.

Looking at the templates, I'm not sure what to add where. How do I go about doing this and if I do this, does it get overwritten the next time I upgrade cpanel?

Sample httpd.conf section:

<VirtualHost 10.0.0.2>
DocumentRoot "/home/sites/domain1/html/"
ServerName domain1.com
ErrorLog /home/mydomain/public_html/logdir/myerrorlog
</VirtualHost>