首页 > 服务器 > nginx开启rewrite例子

作者:ghostry 发布时间:2014-05-14 浏览: 4904

转载注明出处: https://blog.ghostry.cn/server/504.html
if (-f $request_filename/index.html){
          rewrite (.*) $1/index.html break;
         }
    
     if (-f $request_filename/index.php){
         
        rewrite (.*) $1/index.php;
       
         }
    
    if (!-f $request_filename){
    
    rewrite (.*) /index.php;

         }

    location ~ /\.ht {
        deny  all;
    }

标签: nginx rewrite

上一篇: Remmina无法连接到windows7远程桌面
下一篇: ubuntu安装daloradius

添加新评论 »

*
*

欢迎评论!歡迎評論!Comments welcome!komentoj bonvenaj!댓글 오신 것을 환영합니다!
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :cold: :cryy: :cute: :shy: :sleep: :struggle: :tea: :yahou: