Results 1 to 5 of 5
  1. #1
    Hello
    I need to stop the creation of log files on one hosting account on a server.

    The only place I can see this is in httpd.conf:

    <VirtualHost 2xx.171.65.2xx>
    ServerAdmin webmaster@domain.com
    DocumentRoot /home/domain/public_html
    BytesLog domlogs/domain.com-bytes_log
    ServerName http://www.domain.com
    CustomLog domlogs/domain.com combined
    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
    </VirtualHost>


    What is the effect of deleting the line CustomLog?
    I had a look at:
    http://httpd.apache.org/docs/mod/mod...html#customlog
    but its not very clear if the log files that fill up peoples web space are created from here.

    Gordon

    Formerly: Managing Director, Hostroute.com Ltd & Marketing Director, Ultraspeed UK Ltd
    View my Professional Profile: www.gordonhudson.com

  2. #2
    BytesLog domlogs/domain.com-bytes_log

    I think you should just delete this line.
    The Php Support Desk
    http://www.phpsupportdesk.com
    Custom programming - kunal @ e-phoria.com
    http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

  3. #3
    Join Date
    Apr 2000
    Location
    California
    Posts
    3,051
    Originally posted by GordonH
    Hello
    I need to stop the creation of log files on one hosting account on a server.

    The only place I can see this is in httpd.conf:

    <VirtualHost 2xx.171.65.2xx>
    ServerAdmin webmaster@domain.com
    DocumentRoot /home/domain/public_html
    BytesLog domlogs/domain.com-bytes_log
    ServerName http://www.domain.com
    CustomLog domlogs/domain.com combined
    ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
    </VirtualHost>


    What is the effect of deleting the line CustomLog?
    I had a look at:
    http://httpd.apache.org/docs/mod/mod...html#customlog
    but its not very clear if the log files that fill up peoples web space are created from here.

    Gordon

    If you don't want to log anything on that Virtual host, simply remove:

    BytesLog domlogs/domain.com-bytes_log
    and:
    CustomLog domlogs/domain.com combined

    Or, remove BytesLog and put the access like this:
    CustomLog /dev/null combined

  4. #4
    Hello
    Thanks Tim.
    Thats very useful.
    I had been looking through the Apache documentation but couldn't find the answer anywhere.

    We have a project running that offers small web hosting accounts with domain registration (instead of web forwarding) and I did not want the accounts filling up with logs.

    Gordon
    Formerly: Managing Director, Hostroute.com Ltd & Marketing Director, Ultraspeed UK Ltd
    View my Professional Profile: www.gordonhudson.com

  5. #5
    Join Date
    Sep 2000
    Posts
    389
    Gordon, give this a try if you want:
    CustomLog /dev/null combined

    I haven't tried it, but I think it should do the trick.

  6. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •