标签:following cache tor parent from normal lis access conf
环境介绍:
10.10.1.10/32为后端的web服务器,10.10.1.110/32 squid服务器
squid服务器配置
vi /etc/squid/squid.conf
修改
# Only allow cachemgr access from localhost
http_access allow all #原为deny all
http_access deny manager
# Squid normally listens to port 3128
http_port 80 vhost #默认为3128,这里作提供服务,修改为80
visible_hostname www.test.com
cache_peer 10.10.1.10 parent 80 0 web1 #后端的业务服务器地址
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 100 16 256 #配置缓存
后端web服务器的访问日志
可以看出,客户端请求为10.10.1.110/32 为squid服务器
squid服务器访问日志
标签:following cache tor parent from normal lis access conf
原文地址:https://www.cnblogs.com/networking/p/11626234.html