nginx keeps trying to access nonexistent file

I have been trying to understand this for about 1 hour now but i cant make no sense of it, on amazon linux ec2 instances you only have the option of using yum install nginx for simple installation of nginx soo i use that, thing is it doesnt create a /var/www/html folder, doesnt create a sites-available/default file and misses out on other critical options and instead bundles it all into 2 files, my problem is that whenever i try to access a folder located at /var/www/html/uploads via localhost/uploads with the below it says that i cannot access /var/www/html/uploads/index.html, why does it think im trying to access this?:

location / {
            root   /var/www/html;
            index  index.html index.htm;
        }

        location /uploads/ {
            alias /var/www/html/uploads/;
            autoindex on;
            index off;
        }

Read more here: Source link