Browse Source

Adding syslog support for apache logs

Philippe Caseiro 8 months ago
parent
commit
771527f423
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tmpl/sp-default-ssl.conf

+ 5
- 0
tmpl/sp-default-ssl.conf View File

@@ -5,8 +5,13 @@
5 5
 
6 6
 		DocumentRoot /var/www/html
7 7
 
8
+%if %%getVar("activer_envoi_logs","non") == "oui"
9
+		ErrorLog syslog
10
+		CustomLog "||/usr/bin/logger -t apache2 -i -p local6.info" combined
11
+%else
8 12
 		ErrorLog ${APACHE_LOG_DIR}/error.log
9 13
 		CustomLog ${APACHE_LOG_DIR}/access.log combined
14
+%end if
10 15
 
11 16
 		SSLEngine on
12 17
 		SSLProtocol all -SSLv2 -SSLv3 -TLSv1