---
title: "squid 2.6 反向代理配置"
author: "无明"
date: "2007-06-15T17:27:48Z"
tags: []
categories: ["操作系统"]
slug: "squid-2-6"
draft: false
lastmod: "2007-06-15T17:27:48Z"
id: 90804
url: "https://javaite.iteye.com/blog/90804"
---

http\_port 192.168.1.233:80 defaultsite=192.168.1.150 vhost vport=80  
cache\_peer 192.168.1.150 parent 80 0 no-query originserver  
cache\_peer 192.168.1.233 parent 100 0 no-query originserver  
cache\_peer\_domain 192.168.1.150 www.xx.cn  
cache\_peer\_domain 192.168.1.233 www.aa.cn

acl all src 0.0.0.0/0.0.0.0  
acl Safe\_ports port 80  
acl Safe\_ports port 443  
http\_access deny !Safe\_ports  
http\_access allow all

refresh\_pattern -i .  0 100% 0 reload-into-ims

只有一个IP，但是有几台机器要发布到internet上，便想起用squid来做个反向代理，只是起转发请求的作用，不缓存东西。