Web Hosting Talk







View Full Version : Stopping the creation of log files on one account only?


GordonH
02-20-2001, 11:40 AM
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_log_config.html#customlog
but its not very clear if the log files that fill up peoples web space are created from here.

Gordon

kunal
02-20-2001, 01:14 PM
BytesLog domlogs/domain.com-bytes_log

I think you should just delete this line.

Tim Greer
03-05-2001, 01:44 PM
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_log_config.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

GordonH
03-05-2001, 01:57 PM
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

Wazeh
03-05-2001, 11:56 PM
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.