######################## default ############################
server
{
listen
80;
#server_name _;
access_log
/data
/wwwlogs
/access_nginx
.log combined
;
root
/data
/wwwroot
/default/yoc
;
index index
.html index
.htm index
.php
;
if (!-e
$request_filename) {
rewrite ^
/(.*)$
/index
.php
/$
1 last
;
break;
}
location
/nginx_status
{
stub_status on
;
access_log off
;
allow 127
.0
.0
.1
;
deny all
;
}
location ~
[^
/]\
.php
(/|$
) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix
:/dev
/shm
/php
-cgi
.sock
;
fastcgi_index index
.php
;
#######
fastcgi_split_path_info ^
(.+\
.php
)(.*)$
;
fastcgi_param PATH_INFO
$fastcgi_path_info;
#######
include fastcgi
.conf
;
}
location ~
.*\
.(js
|css
)?$
{
expires 7d
;
access_log off
;
}
location ~
/\
.ht
{
deny all
;
}
}