server {
listen 80;
root /var/www;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ /index.php;
}