Quantcast
Channel: ChinaUnix.net - 服务器应用
Viewing all articles
Browse latest Browse all 2948

squid把后端302重写成200响应

$
0
0
作者: youzhengchuan 发表于: 2013-01-07 17:55:12 (GMT 8) 简介:假如有一个WebServer,请求URLA的时候,会返回一个302 ,Location为URLB,在squid上想要把URLB重写为URLC,并且让用户看到的是squid直接响应的URLC。 目前我只知道一个方式,调用squid的“url_rewrite_program”,在perl脚本中: 当用户请求URLA的时候,发起一个http请求去后端探测一下Location,并获得URLB,将U

Viewing all articles
Browse latest Browse all 2948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>