cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Flight Engineer
Flight Engineer
  • 521 Views

http log rotation on apache httpd

Hello All,

 

I have 2 Questions

 

Question 1)

I installed apache httpd then able to acees but logs not rotating daily or hourly for testing but only roate logs once restart httpd .

 

conf default path:

/etc/httpd/conf

logs path :

/apache-hhtpd/logs/

 

I tried to roate logs every 60 seconds but logs not rotate. Please find below config lines.

=============================

config lines

ErrorLog "|/usr/sbin/rotatelogs /apache-httpd/logs/errorlog.%Y-%m-%d-%H_%M_%S 60"
CustomLog "|/usr/sbin/rotatelogs  /apache-httpd/logs/logfile 60" common

=================================

  

Please check & help me for logs roate every 60 seconds for testing only .

Please check & provide me valuable instructions or pre -requisites .

Please provide detailed step by step for log rotation

OS: CentOS 8

 

Note:

its my personal VM box.

Qustion 2) 

if possible please provide detailed steps for SSL enable & configure SSL steps as mentioned above details.

 

 

I am waiting for your valuable information.

 

Regards,

Jeesshnasree

1 Reply
  • 492 Views

0 Kudos
Join the discussion
You must log in to join this conversation.