感谢作者:http://blog.csdn.net/fangaoxin/article/details/7030139

 

    location ~ ^/test/.+\.php$ {
        alias    /var/www/html/test/;
        rewrite    /test/(.*\.php?) /$1 break;
        fastcgi_index    index.php;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_param    SCRIPT_FILENAME /var/www/html/test$fastcgi_script_name;
        include    fastcgi_params;
    }
    location ~^/test($|/.*) {
        alias    /var/www/html/test/$1;
        index    index.php index.html index.htm;
    }

 

相关文章:

  • 2021-11-03
  • 2021-11-03
  • 2021-11-11
  • 2021-11-06
  • 2021-12-03
  • 2021-11-22
  • 2021-11-03
  • 2021-11-10
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-06-14
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案