Ignore:
Timestamp:
Mar 25, 2016, 3:00:56 AM (8 years ago)
Author:
adehnert
Message:
Log scripts/~username accesses (Scripts-#391)
Location:
trunk/server/fedora/config/etc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/config/etc/httpd/conf.d/scripts-vhost.conf

    r2650 r2764  
    3030</Location>
    3131
     32LogFormat "%V %t %>s \"%U\"" tildelog
     33CustomLog "logs/tilde_log" tildelog "expr=%{CONTEXT_PREFIX} =~ m#^/~#"
     34
    3235# As long as we support scripts/~ URLs, we need to disable Service
    3336# Workers on them for security.
  • trunk/server/fedora/config/etc/logrotate.d/httpd

    r2669 r2764  
    3030    endscript
    3131}
     32
     33/var/log/httpd/tilde_log {
     34    rotate 3
     35    daily
     36    missingok
     37    notifempty
     38    create 600 root root
     39    sharedscripts
     40    postrotate
     41        /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true
     42    endscript
     43}
Note: See TracChangeset for help on using the changeset viewer.