server
{
listen
80;
server_name www
.damuqiao
.com damuqiao
.com
;
index index
.html index
.htm index
.php
;
root
/data0
/htdocs
/damuqiao
/yiyao
/web
;
autoindex on
;
location ~
.*.php
{
fastcgi_pass 127
.0
.0
.1
:9000;
set
$path_info "";
set
$real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~
"^(.+?.php)(/.+)$") {
#set $real_script_name $1;
set
$path_info $
2;
}
fastcgi_param PATH_INFO
$path_info;
fastcgi_param SCRIPT_FILENAME
/data0
/htdocs
/damuqiao
/yiyao
/web
/$fastcgi_script_name;
include /usr
/local
/nginx
/conf
/fastcgi_params
;
}
log_format damuqiao
'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log
/data1
/logs
/damuqiao
.log damuqiao
;
}