zoukankan      html  css  js  c++  java
  • Zeus Rewrite

    Zeus Web Server

    在虚拟主机配置中找到 Request Rewriting,在 Rewrite Script 中写入以下内容,然后 Apply changes 并 make it take effect。

    match URL into $ with ^(.*)/archiver/([a-z0-9\-]+\.html)$
    if matched then
          set URL = $1/archiver/index.php?$2
    endif

    match URL into $ with ^(.*)/forum-([0-9]+)-([0-9]+)\.html$
    if matched then
        set URL = $1/forumdisplay.php?fid=$2&page=$3
    endif
     
    match URL into $ with ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
    if matched then
        set URL = $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
    endif

    match URL into $ with ^(.*)/profile-(username|uid)-(.+?)\.html$
    if matched then
        set URL = $1/viewpro.php?$2=$3
    endif

    以上是Zeus Web Server request rewrite 静态URL例子

    Zeus下的Rewrite规则和Apache的很不同,但它有个规则转换,可以用来转换Apache的Zeus之间的Rewrite规则。
    会写Apache在Zeus下也没问题了。

  • 相关阅读:
    nuget
    C#枚举中使用Flags特性
    情感分析
    docker
    core部署
    脱壳系列_2_IAT加密壳_详细分析(含脚本)
    安全公司-* * * *-面试题:_ 安卓逆向分析分享
    18_ShadowWalker
    17_页面异常接管
    16_TLB与流水线
  • 原文地址:https://www.cnblogs.com/studio313/p/1458433.html
Copyright © 2011-2022 走看看