server {
listen 80;
# listen somename:8080;
server_name www.php12.cn;
root /var/www/html/phpcms;
location / {
#if (!-e $request_filename) {
# rewrite ^(.*)$ /index.php?s=$1 last;
# break;
#}
index index.php index.html index.htm;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi.conf;
}
access_log /var/log/nginx/phpcms.php12.cn.log;
}