LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 530|回复: 0

squid奇怪的问题。

[复制链接]
发表于 2004-4-20 22:30:20 | 显示全部楼层 |阅读模式
http_port 80
# forward incoming requests to localhost, port 5180
httpd_accel_host 127.0.0.1
acl acceleratedHost dst 127.0.0.1/255.255.255.255
httpd_accel_port 5180
acl acceleratedPort port 5180
httpd_accel_with_proxy on
acl all src 0.0.0.0/0.0.0.0
acl myNet src 10.0.0.0/255.255.255.0
# we don't want to cache localhost: it's a waste of disk space
no_cache deny acceleratedHost
# we also don't want requests for localhost passed on to a peer
always_direct allow acceleratedHost
# Allow requests when they are to the accelerated machine AND to the
# right port
http_access allow acceleratedHost acceleratedPort
http_access allow myNet
cache_effective_user squid
cache_effective_group squid
http_access deny all
#以上是squid.conf的问题。

我在机器上装了tomcat使用5180端口。
装squid想给它做缓存加速。

但是很奇怪,
网页内写成/xxx的连接,都被指向http://192.168.100.1:5180/xxx
这说明没给做缓存加速?
如果打http://192.168.100.1/xxx也可 ... 缓存加速了?
squid给本机tomcat加速好使吗?
如果必须http://192.168.100.1/xxx这样 ... quid指向那个带
端口号的地址?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表