The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error log directive in httpd.conf

Discussion in 'General Discussion' started by labeach, Jan 5, 2008.

  1. labeach

    labeach Member

    Joined:
    Dec 12, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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>
     
Loading...

Share This Page