Installing elgg 5.1.12 in nginx server

i just renamed vendor/elgg/elgg/install/config/nginx.dist to elgg_site1 and updated the line 21 to server_name navodayas.org

then copied to /etc/nginx/sites-enabled/ folder

while tring to install elgg, I encounter rewrite problems. 

I was trying to use nginx server. I have no issues with apache. Should i fall back to apache? or should i try resolving problems

can anyone please post the correct nginx config here

Thank you