|
楼主 |
发表于 2015-5-15 10:32:55
|
显示全部楼层
server {
listen 80;
server_name local.newtuhaoyun.com;
root E:/web/tuhaoyun/05-code/server/;
charset utf-8;
access_log E:/nmp/nginx/logs/local.newtuhaoyun.com.access.log;
error_log E:/nmp/nginx/logs/local.newtuhaoyun.com.error.log;
location / {
index index.php index.html index.htm;
}
location ~ \.php($|/) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
location ~ /\.ht {
deny all;
}
}
这是我的nginx配置,你的呢?
|
|