I’m using a VPS and ubuntu for the first time and I need to host a website, I’ve got the VPS running and ubuntu installed but when I install apache or nginx everything works fine and I can see the placeholder site when I go to my IP address.
The problem is that after installing I don’t see any folders or files created by nginx when doing
ls -a like the /var or /etc folders.
I tried logging in as root but that also doesn’t help, also I’ve tried to recreate the folder structure and add the files I needed but that also doesn’t change anything.
I’m trying to setup server blocks/virtual hosts but nothing is working as I can’t see nginx’s files and it looks like nginx can’t see my files. Hope someone can help.