#配置文件内容如下:
server {
listen 80;
server_name 146.196.53.246;
root /data/zabbix/;
index index.html index.htm index.php;
#location / {
# try_files $uri $uri/ /index.php;
#}
location ~ \.mp4$ {
mp4;
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
#location ~ \.php$ {
# try_files $uri =404;
# include fastcgi.conf;
# fastcgi_pass 127.0.0.1:9000;
#}
}