I know this question had been asked many times. I checked answers but none of them worked for me. I run this command
which nginx
And I get /usr/sbin/nginx
I try to navigate to that folder and I can see the nginx folder but it says Not a directory
I navigated to /etc/nginx/sites-available
but can't access default
directory or the domain direcroty I want and it keeps saying the same and I can't access them to make any edits. This is the first time I work on nginx server so please I need help here.