配置文件参考一下:

  location /public/ {
    if (!-e $request_filename){
        rewrite  ^/public/(.*)$  /public/index.php?s=/$1  last;
    }
    
    }
  location /public2/ {
    if (!-e $request_filename){
        rewrite  ^/public2/(.*)$  /public2/index.php?s=/$1  last;
    }
    
    }
   location / {
    if (!-e $request_filename){
        rewrite  ^/(.*)$  /index.php?s=/$1  last;
    }
    
    }

 

版权声明:本文为gavinyyb原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/gavinyyb/p/8905222.html