User Tools

Site Tools


ubuntuserver810:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntuserver810:start [2009/08/16 11:17] svschwartzubuntuserver810:start [2010/06/20 14:56] (current) svschwartz
Line 30: Line 30:
  
 ===== Http Proxy - Squid ===== ===== Http Proxy - Squid =====
 +
 +Аутентификация учетных записей ldap
 +<code>
 +auth_param basic program /usr/lib/squid/ldap_auth -b "ou=Users,dc=site,dc=ru" -v 3 -h localhost
 +auth_param basic children 5
 +auth_param basic realm Proxy Server Authentication
 +auth_param basic credentialsttl 2 hours
 +auth_param basic casesensitive off
 +</code>
 +
 +Поправим график ротации логов прокси сервера /etc/logrotate.d/squid
 +<code>
 +#
 +#       Logrotate fragment for squid.
 +#
 +/var/log/squid/*.log {
 +        monthly
 +        compress
 +        rotate 20
 +        missingok
 +        nocreate
 +        sharedscripts
 +        postrotate
 +                test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
 +        endscript
 +}
 +
 +</code>
  
 ==== stats ==== ==== stats ====
Line 113: Line 141:
 #!/bin/sh #!/bin/sh
  
-DSTART=`/bin/date +01.%m.%Y` +DSTART=\`/bin/date +01.%m.%Y\
-DSTOP=`/bin/date +31.%m.%Y`+DSTOP=\`/bin/date +31.%m.%Y\`
  
-/opt/free-sa/bin/free-sa -f /opt/free-sa/etc/free-sa.conf -d ${DSTART}-${DSTOP}+/opt/free-sa/bin/free-sa -f /opt/free-sa/etc/free-sa.conf -d \${DSTART}-\${DSTOP}
 EOF EOF
 chmod +x /etc/cron.hourly/free-sa chmod +x /etc/cron.hourly/free-sa
ubuntuserver810/start.1250421434.txt.gz · Last modified: (external edit)