Archive for the ‘squid’ Category

squid simple but fast

Posted: July 28, 2011 in squid

This is simple squid configurations but very fast for me… For my purpose only not for SALE ;p.. ################################################# acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl purge method PURGE acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost [...]

Code to grep file

Posted: July 28, 2011 in archlinux, Debian, Freebsd, Slackware, squid

This is simple code to grep file … This code using by other to grep squid configurations and other like apache.conf. # cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’ (thanks to kotnik for small sed trick) to safe file use this # cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’ > /etc/squid/squid.conf-new to view or search [...]