another new problem started . old one solved because it has wrong go path
sudo service nginx reload
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
root@localhost:/etc/nginx/sites-available#
root@localhost:/etc/nginx/sites-available# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/default:93
nginx: configuration file /etc/nginx/nginx.conf test failed
root@localhost:/etc/nginx/sites-available#
Your nginx config is broken... around line 93 in file: /etc/nginx/sites-enabled/default .
If you send the content of that file I'll take a look. To get the content of the file:
cat /etc/nginx/sites-enabled/default