Home » Archive

Articles in the Zeus Web Server Category

Zeus Web Server »

[31 Jul 2008 | No Comment | 360 views]

match URL into $ with \.(jpg|gif|bmp)$
if matched then
  set SCRATCH:COND = %{IN:Referer}
  match SCRATCH:COND into % with ^( http://(.+\.)?xmlchina\.org/)(.*)$
  if not matched then
    set URL = /404.jpg
  endif
endif

Zeus Web Server »

[31 Jul 2008 | No Comment | 400 views]

实现目的:访问www.d.com,自动转向到www.e.com
先把 www.d.com www.e.com
绑定到 主机
然后在Request Rewriting写入这段
match IN:Host into $ with ^www\.e\.com$
if matched then
set OUT:Location = http://www.e.com%{URL}
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved
goto END
endif