Beek wrote:
Okay, I'm a little confused about what is going into these directories... I think people conventionally public content that will be served by apache in /var/www, while log files go to some subdirectory of /var/www
In each /var/www/vhost directory, I have directories for htdocs, cgi-bin, and other content. I also put a log directory in here for the access and error logs for each vhost.
Beek wrote:
For my server, I have all the apache logs in /var/log/www, and that directory is only readable and writable by root. When logrotate runs, the old logs get moved to another directory that is world readable.
I want a seperate log for each vhost. Is it better to put them somewhere under /var/log as opposed to /var/www? What do I need to do to get logrorate to rotate the new logs?