Nginx配置

浏览:714 发布日期:2016/04/06 分类:技术分享 关键字: Nginx
root "D:/WWW";
location / {
index index.html index.htm index.php l.php;
autoindex off;
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param script_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>