Somehow i managed to make this work: location / { index index.html index.htm index.php; try_files $uri $uri/ @proxy_backend; } But i think that it should work with: location / { try_files $uri $uri/index.php @proxy_backend; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4893,4904#msg-4904