server {
listen 1000;
server_name your domain;
#access_log logs/host.access.log main;
root /usr/share/nginx/php/test;
index index.html index.htm index.php;
location / {
index index.html index.htm index.php l.php;
autoindex off;
}
location ~ \.php$ {
root /usr/share/nginx/php/test;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/php/test$fastcgi_script_name;
include fastcgi.conf;
include fastcgi_params;
}
}