Score:0

why am I getting error for nginx?

cn flag

I have installed a new ubuntu and new nginx. However, I am created a nginx.conf file inside my website project folder and created a sym link as below

ln -s <project>/nginx.conf /etc/nginx/site-enabled

Now, when I restart my nginx server, it failed and I saw below error in my error.log file.

 open() "/etc/nginx/sites-enabled/nginx.conf" failed (40: Too many levels of symbolic links) in /etc/nginx/nginx.conf:62

As per my understanding, no matter the location where the nginx.conf file resides, if the sym link has been created to site-enabled then there shouldn't be any issue. Please correct me if I am wrong.

Or how should I fix this issue.? Thank you

Richard Smith avatar
jp flag
How have you specified `<project>`? Does it begin with a `/`. What does `ls -l /etc/nginx/sites-enabled` give you?
user3521180 avatar
cn flag
I got the resolution. The sym link was already configured by some other member which I didn't know. So, now there's no problem now. Thank you
in flag
Great that you were able to solve it. Please post it as an answer and accept it, otherwise the question will stay as unsolved in the system forever.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.