V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
barb
V2EX  ›  程序员

nginx 写静态目录 与真静态目录会冲突吗?

  •  
  •   barb · Sep 4, 2013 · 3284 views
    This topic created in 4629 days ago, the information mentioned may be changed or developed.
    我很菜~~~
    5 replies    1970-01-01 08:00:00 +08:00
    barb
        1
    barb  
    OP
       Sep 5, 2013
    我很菜~~~
    shiny
        2
    shiny  
    PRO
       Sep 5, 2013   ❤️ 1
    rewrite 规则优先,除非你加了限制条件排除掉已经存在的文件和目录。(参考 wordpress rewrite 规则)
    icanfork
        3
    icanfork  
       Sep 5, 2013   ❤️ 2
    -f和!-f判断是否存在文件

    -d和!-d判断是否存在目录

    -e和!-e判断是否存在文件或目录

    -x和!-x判断文件是否可执行
    barb
        4
    barb  
    OP
       Sep 5, 2013
    都好强大!
    yaroot
        5
    yaroot  
       Sep 6, 2013
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1482 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.