location / { root /data/xtremenitro/; index index.php index.html index.htm; proxy_pass http://127.0.0.1:81; } This may be the reason - you are serving the files on your nginx server