M thaker
M thaker

Reputation: 393

unable to create softlink in sites-enabled in nginx

I have deleted default and default.save files from both sites-available and sites-enabled. Then I created node-app in sites-available directory. Now I am writing sudo ls -s /etc/nginx/sites-available/node-app /etc/nginx/sites-enabled/node-app to create link to sites-enabled folder, but somehow I am getting the following error:

ls: cannot access /etc/nginx/sites-enabled/node-app: No such file or directory 4 /etc/nginx/sites-available/node-app

How can I point node-app file successfully?

Upvotes: 2

Views: 415

Answers (1)

Irtaza Waris
Irtaza Waris

Reputation: 149

Try

cd sites-enabled
sudo ln -s ../sites-available/foo.conf .
ls -l

instead of

sudo ls -s /etc/nginx/site

Upvotes: 1

Related Questions