nginx+Apache+squid出现error the requested URL could not be retrieved
最近公司服务器访问量日益上升,对服务器进行了调整,用nginx做前端服务器,Apache为后端服务器,squid作为静态页的缓存服务器。访问服务器的静态页的时候报错,如下图:
http://blog.51cto.com/attachment/201011/172741924.png
经过一翻摸索,原来是squid忘记添加一个参数,
# Squid normally listens to port 3128
http_port 192.168.21.130:3128transparent
always_direct allow all
#这2个参数比较重要。添加好以后就显示正常了。
http://blog.51cto.com/attachment/201011/173039696.png
file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/moz-screenshot.png
页:
[1]