1
goal: change the default root directory.
below I will demonstrate the current settings configured in order for someone to possibly understand and tell me what is wrong, missing...
observation that I will demonstrate here only the first line of the file Nginx.conf because it is big and would be unnecessary the whole code, follows the first line of the file /etc/Nginx/Nginx.conf:
user www-data;
filing cabinet /etc/Nginx/sites-enabled/website.conf:
server {
listen 80;
listen [::]:80;
root /var/www/website;
index index.htm index.html;
server_name website;
location / {
autoindex on;
}
}
permission and folder details /var/www/website
-rwxrwxrwx 1 root root 6 Nov 13 04:57 index.html
in this case I performed this command:
sudo chown -R root:root /var/www/website
I also tested like this:
sudo chown -R www-data:www-data /var/www/website
regardless of the two ñ succeeded, ask p/ that before negativar be supportive because I’m qse going hungry.
I hope that my question and demonstration of my failed configuration will be of easy understanding, in other words I hope I have been clear in my doubt, any attention upon response will be of great appraisal. Thanks
Tks Uri, I followed what you said and tbm I visualized some Asian/English tutorials p/ better understanding worked out, regarding the chown command www-data seems obvious + 100 understanding visualized root in the default folder Nginx risked atoa the other command, finally solved strong hug (y)
– Daniel