lnmp配置Yii2规则

nginx配置:

参考地址:http://www.cnblogs.com/grimm/p/5389970.html

  1.     location / {  
  2.         try_files $uri $uri/ /index.php?$args;      
  3.        if (!-e $request_filename){
  4.              rewrite ^/(.*)$ /index.php?r=$1 last;
  5.         }
  6.         root   /usr/share/nginx/html;  
  7.         index  index.php  index.html  index.htm;  
  8.     }  

 

 

https://my.oschina.net/caomenglong/blog/660529

posted on 2016-10-26 15:14  我很迷茫  阅读(203)  评论(0)    收藏  举报