Study Area Facebook粉絲團http://www.facebook.com/sataiwan
0 會員 與 1 訪客 正在閱讀本文。
[root@test root]# vi /usr/local/squid/etc/squid.conf# 這裡請填入你的 Proxy 主機名稱 與 port !httpd_accel_host vbird.adsldns.org# 因為我們是要進行 WWW 的資料快取,所以 port 當然就是 80 囉!httpd_accel_port 80# 這個很重要!因為設定 httpd_accel_host 之後, cache 的設定會自動被終止,# 必須要加上這個設定為 on 之後,才能提供 cache 的功能!httpd_accel_with_proxy onhttpd_accel_uses_host_header on[root@test root]# /usr/local/squid/sbin/squid -k reconfigure
iptables -t nat -A PREROUTING -i eth0 -p tcp -s 192.168.0.0/24 \--dport 80 -j REDIRECT --to-ports 3128
ERRORThe requested URL could not be retrievedWhile trying to retrieve the URL: /The following error was encountered: * Invalid URL Some aspect of the requested URL is incorrect. Possible problems: * Missing or incorrect access protocol (should be `http://'' or similar) * Missing hostname * Illegal double-escape in the URL-Path * Illegal character in hostname; underscores are not allowed Your cache administrator is root.Generated Thu, 05 Oct 2006 11:49:10 GMT by gateway-1.eta.com.tw (squid/2.5.STABLE14)
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp -s 192.168.0.0/24 \--dport 80 -j REDIRECT --to-ports 3128