One, the installation package
Chianunix.net
Squid-2.6.stable4.tar.gz
Installation parameters
./configure--prefix=/www/sqd/sqd/sqd--enable-basic-auth-helpers= "NCSA"
Two, installation configuration
Visible_hostname sqd289
Auth_param Basic PROGRAM/WWW/SQD/SQD/SQD/LIBEXEC/NCSA_AUTH/WWW/SQD/SQD/SQD/LIBEXEC/PASSWD
Http_port 3128
Hierarchy_stoplist Cgi-bin?
ACL QUERY Urlpath_regex cgi-bin \?
Cache Deny QUERY
ACL Apache Rep_header Server ^apache
Broken_vary_encoding Allow Apache
Access_log/www/sqd/sqd/sqd/var/logs/access.log Squid
Refresh_pattern ^ftp:1440 20% 10080
Refresh_pattern ^gopher:1440 0% 1440
Refresh_pattern. 0 20% 4320
ACL all src 0.0.0.0/0.0.0.0
ACL manager Proto Cache_object
ACL localhost src 127.0.0.1/255.255.255.255
ACL To_localhost DST 127.0.0.0/8
ACL ssl_ports Port 443 563
ACL Connect method Connect
ACL Auth_User Proxy_auth REQUIRED
ACL Edong Proxy_auth liangi289
Http_access Allow Edong
Http_access allow manager localhost
Http_access Deny Manager
Http_access Deny! Safe_ports
Http_access Deny CONNECT! Ssl_ports
Http_access Deny All
Http_reply_access Allow all
Icp_access Allow all
Cache_effective_user Nobody
Cache_effective_group Nobody
Coredump_dir/www/sqd/sqd/sqd/var/cache
Third, Parameter modification:
The owner of the A,logs,cache file should read
Noboby.noboby
b, create a new passwd file in the/www/sqd/sqd/sqd/libexec/directory and add a user account and password to it
Htpasswd-c/www/sqd/sqd/sqd/libexec/passwd liangi289
Four, before the start of the preparatory work:
Generate Cache Directory
/www/sqd/sqd/sqd/etc/squid-z
The startup process is displayed on the screen
/www/sqd/sqd/sqd/etc/squid-n-D1
If the ready to serve requests appears.
Indicates a successful start.
Other operations can refer to http://debian.anheng.com.cn/news/28405.html
Four, login user name password
liangi289
liangi289
2009-09-16
This article is from the "Five Corners" blog, please be sure to keep this source http://hi289.blog.51cto.com/4513812/1764617
Squid do proxy Server instance configuration