server {
listen 80;
server_name localhost:80;
location / {
root /usr/local/nginx/html/zyq/;
index index.php server.php index.html index.htm;
try_files $uri $uri/ /server.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root /usr/local/nginx/html/zyq/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}