server {
listen 80;
server_name apply.lalagome.cn;
root /usr/local/www/gome;
error_page 404 500 502 503 504 /50x.html;
index index.html index.htm index.php ;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
nginx 支持thinkphp pathinfo模式
原创
©著作权归作者所有:来自51CTO博客作者ludyse的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:php curl扩展的使用
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
nginx-rtmp-module 支持 Enhancing RTMP HEVC(H.265)
nginx-rtmp-module 支持 Enhancing RTMP HEVC(H.265)修改代码.
nginx Enhancing RTMP Enhancing RTMP H265 Enhancing RTMP HEVC nginxEnhanceRTMP265 nginxEnhanceRTMPHEVC -
设计模式-策略模式
设计模式之策略模式
策略模式 设计模式 -
Nginx支持thinkphp pathinfo模式
Nginx支持thinkphp pathinfo模式
nginx thinkphp -
解决nginx不支持pathinfo Thinkphp命名空间问题
1.这是我Ubuntu14.4配置文件server { listen 9989 default_server; # SSL configuration # # listen 443 ssl default_server;  
include 配置文件 traffic package generated -
配置nginx,Apache支持pathinfo模式-什么是phpinfo模式
你一定见过类似这样的路径:http://w
php HTTP Apache