首页 > 其他 > 详细

nginx虚拟配置

时间:2015-11-21 15:45:21      阅读:232      评论:0      收藏:0      [点我收藏+]
 1 server {
 2         listen       8080;
 3         server_name  www.manihome.com ;
 4         root   "D:/WWW/mnmnh_2015";
 5         location / {
 6           if (!-e $request_filename) {
 7 
 8               rewrite  ^(.*)$  /index.php?s=$1  last;
 9 
10               break;
11 
12           }
13             index  index.html index.htm index.php;
14             #autoindex  on;
15         }
16         location ~ \.php(.*)$ {
17             fastcgi_pass   127.0.0.1:9000;
18             fastcgi_index  index.php;
19             fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
20             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
21             fastcgi_param  PATH_INFO  $fastcgi_path_info;
22             fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
23             include        fastcgi_params;
24         }
25 }

 

nginx虚拟配置

原文:http://www.cnblogs.com/CHEUNGKAMING/p/4983807.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!