server
{
listen
80;
server_name
pos.test
.cn
;
root
/home
/wwwroot
/pos;
index index
.php index
.html
default.php
;
location
/ {
try_files
$uri $uri/ /index
.php?
$query_string;
}
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
;
}
location ~
.*\
.(gif
|jpg
|jpeg
|png
|bmp
|swf
)$
{
expires 30d
;
}
location ~
.*\
.(js
|css
)?$
{
expires 12h
;
}
location ~
/\
.ht
{
deny all
;
}
}