Nginx虚拟目录支持PHP配置

感谢作者: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;
}
上一篇:pl/sql关于赋值的小小注意


下一篇:QTP数据驱动之读取Excel数据