server {
server_name localhost4;
root /var/www/localhost4/public;
index index.php;
try_files $uri $uri/ @notfile;
location @notfile {
rewrite ^(.*) /index.php last;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index /index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}