I have done all the steps but while running the statement, I am getting the following error. I have created my Digital Ocean VPS host in port 3000.
$ sudo rm /etc/nginx/sites-enabled/default $ sudo service nginx restart * Restarting nginx nginx [fail]
$ sudo nginx -t
nginx: [emerg] "listen" directive is not allowed here in /etc/nginx/sites-enabled/hosting:1 nginx: configuration file /etc/nginx/nginx.conf test failed
I have done all the steps but while running the statement, I am getting the following error. I have created my Digital Ocean VPS host in port 3000.
$ sudo rm /etc/nginx/sites-enabled/default
$ sudo service nginx restart
* Restarting nginx nginx [fail]
$ sudo nginx -t
nginx: [emerg] "listen" directive is not allowed here in /etc/nginx/sites-enabled/hosting:1
nginx: configuration file /etc/nginx/nginx.conf test failed