« Fast Cache & TCP Express - New Optimization Features of F5 BIG-IP v9 | Main | axs 一个基于perl 本地文件log的访问跟踪系统 »
June 7, 2005
squid cluster & visible_hostname
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2005/06/07/000683.html http://windtear.net/archives/2005/06/07/000683.html 本地单主机加速 和前端加速squid组成cluster visible_hostname 设成相同会有 TCP_DENIED 发生 就是说相同的 host name 设置是不允许的 # TAG: visible_hostname # If you want to present a special hostname in error messages, etc, # define this. Otherwise, the return value of gethostname() # will be used. If you have multiple caches in a cluster and # get errors about IP-forwarding you must set them to have individual # names with this setting. # #Default: # none 还有就是 single_host 和 uses_host_header 至少 single_host 要为 on httpd_accel_host IP not virtual httpd_accel_port 80 httpd_accel_with_proxy off httpd_accel_single_host on httpd_accel_uses_host_header on 127.0.0.1 是最赞的 不过要允许 PURGE 的话 就要加本地 IP 允许 apache 的 Port 80 BindAddress 127.0.0.1 或者 Listen 127.0.0.1:80 自然是不可少的了 cluster前端指定IP就行了 如此 |
Posted by windtear at June 7, 2005 11:48 PM