[olug] apache logging - here's the conf
Terry
td3201 at yahoo.com
Tue May 11 14:59:36 UTC 2004
Tim,
Did you get this to work? If so, how?
Thanks,
Terry
--- Terry <td3201 at yahoo.com> wrote:
> Well, root is going to be sending the apache logs to
> /usr/local/apache2/bin/rotatelogs on <STDIN>.
>
> Couple of things here:
> 1) Again, it's running as root. Is
> /usr/local/apache2/bin/rotatelogs secure?
> 2) logrotated does a pretty good job of this, any
> reason to reinvent the wheel?
> 3) Have you tried replacing that with something
> standard to see if that works?:
> ErrorLog
> /home/websites/logs/christtrek.org/error.log
>
> Good luck!
>
>
> --- thelarsons3 at cox.net wrote:
> > OK, here is the conf, minus all the comment junk.
> > Hopeflly the line wraps don't make it illegible.
> >
> >
> >
> >
> >
> > Listen 0.0.0.0:80
> > Listen [::]:80
> >
> > UserDir public_html
> > Options IncludesNoExec FollowSymLinks MultiViews
> > DirectoryIndex index.jsp index.shtml index.html
> > #ServerRoot /usr/local/apache2
> > #ErrorLog logs/error_log
> > #TypesConfig conf/mime.types
> > #PIDFile logs/httpd.pid
> >
> > <IfModule !mpm_winnt.c>
> > <IfModule !mpm_netware.c>
> > User webuser
> > Group webgroup
> > </IfModule>
> > </IfModule>
> >
> > ServerName woodstock.christtrek.org
> >
> > LogFormat "%h %l %u %t \"%r\" %>s %b
> \"%{Referer}i\"
> > \"%{User-Agent}i\"" combined
> > LogFormat "%h %l %u %t \"%r\" %>s %b" common
> > LogFormat "%{Referer}i -> %U" referer
> > LogFormat "%{User-agent}i" agent
> >
> > CustomLog logs/access.log combined
> >
> > AddOutputFilter INCLUDES .shtml
> >
> > NameVirtualHost *:80
> >
> > <VirtualHost *:80>
> > ServerAdmin webmaster at christtrek.org
> > DocumentRoot /home/websites/christtrek.org
> > ServerName private.test.server
> > ErrorLog "|/usr/local/apache2/bin/rotatelogs
> > /home/websites/logs/christtrek.org/error.log%Y%m%d
> > 2629800"
> > CustomLog "|/usr/local/apache2/bin/rotatelogs
> >
> /home/websites/logs/christtrek.org/access.log%Y%m%d
> > 604800" combined
> > </VirtualHost>
> >
> > <VirtualHost *:80>
> > ServerAdmin webmaster at cpne.org
> > DocumentRoot /home/websites/cpne.org
> > ServerName nonpublic.test.server
> > ErrorLog "|/usr/local/apache2/bin/rotatelogs
> > /home/websites/logs/cpne.org/error.log%Y%m%d
> > 2629800"
> > CustomLog "|/usr/local/apache2/bin/rotatelogs
> > /home/websites/logs/cpne.org/access.log%Y%m%d
> > 604800" combined
> > </VirtualHost>
> >
> >
> > --
> > Tim & Alethea
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
>
>
> =====
> Terry
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
More information about the OLUG
mailing list