In case you want to serve static files in your website in nginX, you can add a new
This is it, whether it is a uwsgi proxy, fpm, etc.
#web_server #nginx #static #location #serve
location
directive to your server block that corresponds to your website:server {
# your rest of codes in server block...
location / {
location ~ \.(css|ico|jpg|png) {
root /etc/nginx/www/your_site/statics;
}
# your rest of codes...
}
}
This is it, whether it is a uwsgi proxy, fpm, etc.
#web_server #nginx #static #location #serve