squid反向代理实现
squid。conf的配置如下:
cache_effective_user squid
cache_effective_group squid
maximum_object_size 10 MB
maximum_object_size 512 KB
cache_mem 256 MB
cache_dir ufs /usr/local/squid/var/cache 500 16 256
cache_log /usr/local/squid/var/logs/cache.log
cache_swap_log /usr/local/squid/var/logs/swap.log
#***********************
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl Safe_ports port 8082
visible_hostname 10.57.21.200
http_access allow manager localhost
http_access deny manager
http_access deny to_localhost
http_access deny !Safe_ports
http_access deny all
http_port 8082 vhost vport defaultsite=sina.com.cn
hierarchy_stoplist cgi-bin ?
access_log /usr/local/squid/var/logs/access.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern . 0 20% 4320
icp_port 0
log_icp_queries off
coredump_dir /usr/local/squid/var/cache
高手来指点下菜鸟了,是否能实现反向代理
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论