LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2007, 12:20 AM   #1
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
apache2 replaces apache1 in slack current


I noticed in the latest changelog that httpd-2.2.4 replaced apache-1.3.37 in slack current on 5/19/07? I have been checking out the apache2 ProxyPreserveHost command for my virtual hosts on a secondary internal server. I'm ready to make the jump. Anybody else?
 
Old 05-23-2007, 09:36 AM   #2
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
Hehe. I already wondered if this one would stay in slack forever due to its 1337n355
 
Old 05-23-2007, 09:54 AM   #3
d-ra
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: Disabled
Lightbulb /etc/logrotate.d/httpd

Be aware of the /etc/logrotate.d/httpd file:
Code:
/var/log/httpd/* {
  rotate 10
  size=5M
  compress
  delaycompress
  sharedscripts
  postrotate
    /etc/rc.d/rc.httpd restart
  endscript
}
The filter /var/log/httpd/* will end up in a recursion. This filter matches not only the logfiles like *_log, it matches the shifted archives too. After some logrotate -f you will see:
Quote:
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.1
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.1.1
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.1.1.1
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.1.1.1.1
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.1.1.1.2.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.1.2.gz
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.1.1.2.gz.1
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.1.1.3.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.2.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.2.gz.1
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.1.2.gz.1.1
-rw-r--r-- 1 root root 33 2007-05-21 20:39 access_log.1.2.gz.2.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.3.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.1.3.gz.1
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.1.4.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.2.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.2.gz.1
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.2.gz.1.1
-rw-r--r-- 1 root root 20 2007-05-21 20:39 access_log.2.gz.1.1.1
-rw-r--r-- 1 root root 33 2007-05-21 20:39 access_log.2.gz.1.2.gz
-rw-r--r-- 1 root root 0 2007-05-21 20:39 access_log.2.gz.2.gz
Funny, isn't it? My patch:
Code:
/var/log/httpd/*_log {
  rotate 10
  size=5M
  compress
  delaycompress
  sharedscripts
  postrotate
    /etc/rc.d/rc.httpd restart
  endscript
}
Important: var/log/httpd/*_log or another suffix - depends on what you have chosen as log filenames.

Last edited by d-ra; 05-23-2007 at 09:56 AM.
 
Old 05-23-2007, 10:00 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
d-ra:
Another solution for this is to add the 'olddir' parameter to the logrotate file (specify a directory relative to /var/log/httpd to place the rotated logs in and create the directory manually).
 
  


Reply

Tags
httpd, logrotate



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache1. or apache2 merlin23 Linux - Networking 1 12-01-2004 11:58 AM
Apache1 & Apache2 - How do I get them both working on the same box? neocookie Linux - Software 3 09-24-2004 02:58 AM
Perl script works with Apache1 but not Apache2, why? m3kgt Linux - Software 7 03-11-2004 12:36 PM
Why use Apache1.3 - What can't Apache2 do? davee Linux - Software 2 11-12-2003 11:42 AM
Slackware8: upgrade Apache1 to Apache2 m3kgt Linux - Software 3 10-27-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration