Re: [SLUG] Apache vhost logs and file descriptors limits: individuallogs vssingle log
If you're worried, then why not just go ahead and set up so that you log to a single file and then split from there. split-logfile comes with apache for this purpose. http://httpd.apache.org/docs/programs/other.html Andrew On Mon, 4 Aug 2003, Voytek Eymont wrote: > Date: Mon, 4 Aug 2003 13:53:23 > From: Voytek Eymont <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [SLUG] Apache vhost logs and file descriptors limits: > individual logs vssingle log > > ** Reply to note from "Oscar Plameras" <[EMAIL PROTECTED]> Mon, 4 Aug 2003 13:33:12 > +1000 > > > > There is a way around. You can have separate log files for each > > virtual host. Assign ip number for each virtual host. > > > > You may also need encryption between your server and clients for > > security, in these times when users have snippers, tcpdump, and > > ethereal. So, ip numbers for each virtual host is a must. > > thanks, Oscar > > all these are name based vhosts, and I don't have spare IP addresses to asign to > them. > > I'm just trying to scertain whether I should run individual vhost logs vs a single > log > for all vhosts, from the perpective of file handles use. > > > > Voytek Eymont > -- No added Sugar. Not tested on animals. May contain traces of Nuts. If irritation occurs, discontinue use. --- Andrew McNaughton In Sydney Working on a Product Recommender System [EMAIL PROTECTED] Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Apache vhost logs and file descriptors limits: individuallogs vssingle log
** Reply to note from "Oscar Plameras" <[EMAIL PROTECTED]> Mon, 4 Aug 2003 13:33:12 +1000 > There is a way around. You can have separate log files for each > virtual host. Assign ip number for each virtual host. > > You may also need encryption between your server and clients for > security, in these times when users have snippers, tcpdump, and > ethereal. So, ip numbers for each virtual host is a must. thanks, Oscar all these are name based vhosts, and I don't have spare IP addresses to asign to them. I'm just trying to scertain whether I should run individual vhost logs vs a single log for all vhosts, from the perpective of file handles use. Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] Apache vhost logs and file descriptors limits: individuallogs vssingle log
> looking at some of the Apache docs on vhosting states in part: > - > /manual/vhosts/mass.html > > ... > The main disadvantage is that you cannot have a different log file for each virtual > host; however if you have very many virtual hosts then doing this is dubious anyway > because it eats file descriptors. It is better to log to a pipe or a fifo and arrange > for the process at the other end to distribute the logs to the customers (it can also > accumulate statistics, etc.). > There is a way around. You can have separate log files for each virtual host. Assign ip number for each virtual host. You may also need encryption between your server and clients for security, in these times when users have snippers, tcpdump, and ethereal. So, ip numbers for each virtual host is a must. To assign ip numbers, I have In my /etc/rc.d/rc.local ifconfig eth0:0 192.168.1.5 ifconfig eth0:1 192.168.1.6 ifconfig eth0:2 192.168.1.7 (Note:Replace 'eth' accordingly, depending on your Network Card) Then, in your forward named (BIND) database, learn IN A 192.168.1.5 manual IN A 192.168.1.6 testIN A 192.168.1.7 Ensure to configure reverse named (BIND) database, too, namely: 5INPTRlearn.noy.com.au. 6INPTRmanual.noy.com.au. 7INPTRtest.noy.com.au. And, in your httpd.conf, ServerAdmin [EMAIL PROTECTED] DocumentRoot /home3/noy.com.au/learn ServerName learn.noy.com.au Errorlog /home3/noy.com.au/learn/logs/error_log TransferLog /home3/noy.com.au/learn/logs/access_log Order allow,deny Deny from all Satisfy All # ServerAdmin [EMAIL PROTECTED] DocumentRoot /home3/noy.com.au/manual ServerName manual.noy.com.au Errorlog /home3/noy.com.au/manual/logs/error_log TransferLog /home3/noy.com.au/manual/logs/access_log Order allow,deny Deny from all Satisfy All # ServerAdmin [EMAIL PROTECTED] DocumentRoot /home3/noy.com.au/test ServerName test.noy.com.au Errorlog /home3/noy.com.au/test/logs/error_log TransferLog /home3/noy.com.au/test/logs/access_log Order allow,deny Deny from all Satisfy All Have some fun. http://www.acay.com.au/~oscarp/disclaimer.html -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug