server { listen 80; server_name foo.com; root /path; index index.html index.htm index.php; #rewrite index location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } }
server { listen 80; server_name foo.com; root /path; index index.html index.htm index.php; #rewrite index location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { try_files $uri =404; include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } }