squid反向代理安装实战
2007-09-21 01:25
309 查看
1,以yum方式安装
2,配置:
#squid.conf
http_port 8080
#max link per client
acl OverConnLimit maxconn 16
http_access deny OverConnLimit
#access limit
acl myip dst 192.168.155.36
http_access deny !myip
#allow admin from local
acl Manager proto cache_object
acl Localhost src 127.0.0.1 192.168.155.36
http_access allow Manager Localhost
http_access deny Manager
#only for port 80
acl all src 0.0.0.0/0.0.0.0
acl Safe_ports port 80
http_access deny !Safe_ports
http_access allow all
#Squid info
visible_hostname www.mydomain.com.cn
cache_mgr info@cnfoto.com.cn
#base setup
cache_dir ufs /usr/local/squid/cache 1024 16 256
cache_mem 512 MB
cache_effective_user squid
cache_effective_group squid
tcp_recv_bufsize 65535 bytes
httpd_accel_host 192.168.155.36
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_uses_host_header on
httpd_accel_with_proxy on
#2.6 cache
#cache_peer 192.168.155.36 parent 80 0 no-query originserver
#error document
error_directory /usr/share/squid/errors/Simplify_Chinese
#for single
icp_port 0
3,备注:
/usr/local/squid/cache目录应该设置为chown squid.squid /usr/local/squid/cache
squid -z 创建cache的目录
4,todo list
1,编译安装2.6
2,cronolog
3,设置
4,优化
2,配置:
#squid.conf
http_port 8080
#max link per client
acl OverConnLimit maxconn 16
http_access deny OverConnLimit
#access limit
acl myip dst 192.168.155.36
http_access deny !myip
#allow admin from local
acl Manager proto cache_object
acl Localhost src 127.0.0.1 192.168.155.36
http_access allow Manager Localhost
http_access deny Manager
#only for port 80
acl all src 0.0.0.0/0.0.0.0
acl Safe_ports port 80
http_access deny !Safe_ports
http_access allow all
#Squid info
visible_hostname www.mydomain.com.cn
cache_mgr info@cnfoto.com.cn
#base setup
cache_dir ufs /usr/local/squid/cache 1024 16 256
cache_mem 512 MB
cache_effective_user squid
cache_effective_group squid
tcp_recv_bufsize 65535 bytes
httpd_accel_host 192.168.155.36
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_uses_host_header on
httpd_accel_with_proxy on
#2.6 cache
#cache_peer 192.168.155.36 parent 80 0 no-query originserver
#error document
error_directory /usr/share/squid/errors/Simplify_Chinese
#for single
icp_port 0
3,备注:
/usr/local/squid/cache目录应该设置为chown squid.squid /usr/local/squid/cache
squid -z 创建cache的目录
4,todo list
1,编译安装2.6
2,cronolog
3,设置
4,优化
相关文章推荐
- CentOS编译安装Squid配置反向代理服务器
- Linux下Squid3.0反向代理的安装与配置
- Squid3.0反向代理的安装与配置
- Centos6.2 编译安装squid 配置反向代理服务器
- CentOS 6.6编译安装Squid 配置反向代理服务器
- centos6.4下反向代理服务器squid安装,配置,日志管理,监控及压力测试
- 在Cent OS 5.5上安装配置Squid反向代理服务器
- squid 3 反向代理 缓存服务器 安装配置精华指南 by lbj
- SQUID反向代理安装+配置文件详解+缓存清理脚本+日志切割
- Squid3反向代理安装与配置
- centos下简单配置安装Squid 3.0反向代理
- CentOS 6.6编译安装Squid 配置反向代理服务器
- CentOS7.2 安装Squid3.5及正、反向代理设置
- Nginx之四:Nginx反向代理Tomcat(Tomcat的安装方法)
- Windows下安装Nginx反向代理服务器
- squid反向代理实现web缓存
- nginx实战(四)反向代理配置缓存及负载均衡
- linux:服务器代理squid安装配置
- Squid2.6反向代理实现多个Web缓存加速