■squid install


cd /wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE14.tar.gz
tar xzvf squid-2.5.STABLE14.tar.gz
cd squid-2.5.STABLE14

./configure --enable-err-language=Japanese --disable-internal-dns --enable-ssl
cp /usr/local/squid/etc/squid.conf /squid.conf
make;make install

vi /usr/local/squid/etc/squid.conf
--------------------
cache_dir ufs /var/cache/squid 100 16 256
cache_effective_user squid
visible_hostname hogege.net
httpd_accel_host 192.168.1.1(自分自身のIPとかアプリが動いているサーバとか)
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_with_proxy on
httpd_accel_uses_host_header off

https_port 443 cert=/usr/local/ssl/certs/cert.pem key=/usr/local/ssl/private/key.pem
acl SSL_ports port 443

acl all src 0.0.0.0/0.0.0.0
http_access allow all

coredump_dir /var/cache/squid
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
--------------------


/usr/local/squid/sbin/squid -z
chown -R squid /usr/local/squid/var/logs; chgrp -R squid /usr/local/squid/var/logs
/usr/local/squid/sbin/squid -z