อ้างอิงจาก http://www.thaihosttalk.com/index.php?showtopic=2618
ก่อนอื่นก็ต้องติดตั้ง squid ก่อน ในที่นี้ผมใช้ rpm
ก็เลยพิมพ์ไปว่า
# apt-get install squid
หลังจากติดตั้งเสร็จ ก็มาตั้งค่ามัน แต่ก่อนอื่นต้อง stop ไปก่อน
เผื่อคนแอบใช้ อันที่จริงมันไม่ได้ auto start หรอก ^^'
# service squid stop
# vi /etc/squid/squid.conf
http_port 9085 icp_port 0 acl QUERY urlpath_regex cgi-bin ? no_cache deny QUERY cache_mem 1024 MB cache_dir ufs /var/spool/squid 1024 16 256 emulate_httpd_log on redirect_rewrites_host_header off acl all src 0.0.0.0/0.0.0.0 http_access allow all cache_mgr [email protected] cache_effective_user squid cache_effective_group squid httpd_accel_host virtual httpd_accel_port 80 log_icp_queries off cachemgr_passwd changethisforsecurityreason buffered_logs on visible_hostname accelerator.icez.net httpd_accel_with_proxy off httpd_accel_uses_host_header on httpd_accel_single_host off |