Ultimo aggiornamento il
May 03, 2021 07:05:35 AM GMT
|
Valido anche per Dispatcher
Domanda
Come impostare la rotazione dei log per Dispatcher su Apache 2.2
Risposta, Soluzione
Nota: è necessaria almeno la versione 4.0.1 di Dispatcher. Le versioni precedenti del modulo dispatcher per Apache non supportano i log in piping
Fai riferimento a: http://httpd.apache.org/docs/2.2/logs.html
Ecco un esempio di configurazione per il dispatcher in httpd.conf:
... <IfModule disp_apache2.c> # posizione del file di configurazione. es: 'conf/dispatcher.any' DispatcherConfig conf/dispatcher.any # posizione del file di log del dispatcher. eg: 'logs/dispatcher.log' DispatcherLog '|/usr/local/apache/bin/rotatelogs /var/logs/%Y-%m-%d-dispatcher.log 86400 -240' # log level for the dispatcher log # 0 Errors # 1 Warnings # 2 Infos # 3 Debug DispatcherLogLevel 1 # if turned to 1, the dispatcher looks like a normal module DispatcherNoServerHeader 0 # if turned to 1, request to / are not handled by the dispatcher # use the mod_alias then for the correct mapping DispatcherDeclineRoot 0 # if turned to 1, the dispatcher uses the URL already processed # by handlers preceeding the dispatcher (i.e. mod_rewrite) # instead of the original one passed to the web server. DispatcherUseProcessedURL 0 </IfModule> ...
Per implementare funzionalità simili con le vecchie versioni di dispatcher:
- Fare riferimento a http://httpd.apache.org/docs/2.2/logs.html
- Nota: apache deve essere riavviato ad ogni rotazione dei log
Prodotti interessati:
Dispatcher > 4.0.1
Accedi al tuo account