You could also define index inside the server block, outside the location block: server { index index.php; location ... location ... } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,229985,230102#msg-230102