Home > Software design >  Static not existing though being declared in nginx default config
Static not existing though being declared in nginx default config

Time:08-04

I'm trying to get my static files accessible so that I can load them with Flask.

ex: https://example.com/static/render.css

I've included this in the https part of my site:

location /static/ {
    autoindex on;
    alias /root/site/static;
}

But it just returns a 403 always. The directory is correct and all, I've also ran the chown -R /root/site/static/ command. Idk what's the issue.

Nginx is definitely doing something with the data though, as all other extensions just reply a badgateway.

CodePudding user response:

I decided to just write my CSS inline.

  • Related