Chinaunix

标题: 请教个关于页面自动跳转问题-squid [打印本页]

作者: ferrati    时间: 2011-08-26 16:47
标题: 请教个关于页面自动跳转问题-squid
请教下高手个,能否使客户端在访问http://www.sina.com的时候自动跳转到http://www.sina.com/news呢?
用的是squid,应该如何设置?
谢谢了.
作者: comxyz    时间: 2011-08-26 20:08
复杂,顶...
作者: LnBSD    时间: 2011-08-29 09:42
手册不是有介绍吗,通过外部的重定向器来做
作者: ferrati    时间: 2011-08-29 10:15
手册不是有介绍吗,通过外部的重定向器来做
LnBSD 发表于 2011-08-29 09:42



    不知道语法应该怎么写,还请指教,多谢了.
作者: aaaaaa    时间: 2011-08-29 10:50
还真有这个需求啊,squid得用外部的脚本啥的才好解决重定向的问题。这个用TS解决起来就简单多了,系统默认支持:


#  Or you could permanently redirect users trying to access www.oldserver.com
#  to www.newserver.com with the following rule:
#
#  redirect     http://www.oldserver.com/    http://www.newserver.com
#
#  If the redirect is only temporary, you want to only temporarily remap the
#  URL.  You could use the following rule to divert users away from a failed
#  server:
#
#  redirect_temporary http://broken.firm.com http://working.firm.com
作者: myforever    时间: 2012-02-13 14:10
可以通过直接写html来跳转

比如 http://www.2beanet.com/vxworks





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2