Skip to content

Instantly share code, notes, and snippets.

@ozuma
Created March 6, 2014 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozuma/9397993 to your computer and use it in GitHub Desktop.
Save ozuma/9397993 to your computer and use it in GitHub Desktop.
squidでdenyしたログのみ別ファイルに出す
acl blacklist_regex url_regex "/usr/local/squid/etc/blacklist.txt"
http_access deny blacklist_regex
...
...
access_log /var/log/squid/access.log squid
access_log /var/log/squid/deny.log squid blacklist_regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment