Changeset 25300 in main


Ignore:
Timestamp:
05/28/22 20:00:34 (4 weeks ago)
Author:
Paul Leo
Message:

Adding log files that roll over every day

File:
1 edited

Legend:

Unmodified
Added
Removed
  • adopters/hi/trunk/src/main/apache_httpd_configs/wordpress_ibis/dev/httpd.conf

    r24877 r25300  
    320320# container, that host's errors will be logged there and not here.
    321321#
    322 ErrorLog "logs/error.log"
     322###ErrorLog "logs/error.log"
     323
     324# For use of rotatelogs, see https://httpd.apache.org/docs/2.4/programs/rotatelogs.html
     325# am using rotate every day and keep 7 days, could keep more.
     326# you could also rotate at midnight and create a log with date, but keeping only x logs will not work with that
     327### NOTE: -c not permitted in windows, may be other options also not permitted, see explanation in next section log_conf_module
     328# -v is verbose output for debugging, BUT...
     329# try first with access, if you try with Errorlog, and you have something wrong, no log will be produced.
     330# note daily is 86400, testing is 60 (every minute)
     331# Next line is for testing log rotation every 20 seconds, keep 7 files, verbose output
     332# ErrorLog "|bin/rotatelogs.exe -l -v -n 7 logs/error.log 20"
     333##### Now set in httpd-vhosts.conf #####
     334# Next line is for production, rotate every day, keep 14 logs
     335ErrorLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/error.log 86400"
    323336
    324337#
     
    349362    # logged therein and *not* in this file.
    350363    #
    351     CustomLog "logs/access.log" common
     364    ####CustomLog "logs/access.log" common
    352365
    353366    #
     
    355368    # (Combined Logfile Format) you can use the following directive.
    356369    #
    357     #CustomLog "logs/access.log" combined
     370    ####CustomLog "logs/access.log" combined
     371       
     372# For use of rotatelogs, see https://httpd.apache.org/docs/2.4/programs/rotatelogs.html
     373# am using rotate every day and keep 7 days, could keep more.
     374# you could also rotate at midnight and create a log with date, but keeping only x logs will not work with that
     375### NOTE: -c not permitted in windows, may be other options also not permitted, see explanation in next section log_conf_module
     376# -v is verbose output for debugging, BUT...
     377# try first with access, if you try with Errorlog, and you have something wrong, no log will be produced.
     378# note daily is 86400, testing is 60 (every minute)
     379
     380CustomLog "|bin/rotatelogs.exe -l -f -v -n 14 logs/access.log 86400" common
     381                                               
     382       
    358383</IfModule>
    359384
     
    563588ProxyPreserveHost On
    564589
    565 #ProxyPass         "/report/" "ajp://127.0.0.1:8009/hhdw-view/"
    566 #ProxyPassReverse  "/report/" "ajp://127.0.0.1:8009/hhdw-view/"
    567 
    568 ##ProxyPass         "/report/" "http://127.0.0.1:8080/hhdw-view/"
    569 ##ProxyPassReverse  "/report/" "http://127.0.0.1:8080/hhdw-view/"
    570 ##ProxyPassReverseCookiePath "/hhdw-view" "/report"
     590###ProxyPass         "/hhdw-content/" "http://127.0.0.1:8080/hhdw-content-dev/"
     591###ProxyPassReverse  "/hhdw-content/" "http://127.0.0.1:8080/hhdw-content-dev/"
     592
    571593
    572594ProxyPass         "/report/" "http://127.0.0.1:8080/report/"
Note: See TracChangeset for help on using the changeset viewer.