Nginx failing to load CSS and JS files (MIME type error)?
for anyone else facing this issues, I had this problem and had removed my mime.types include
http { include mime.types; ... server { listen: 80 ... }
Try adding this to your /etc/nginx/conf.d/default.conf
location ~ \.css { add_header Content-Type text/css;}location ~ \.js { add_header Content-Type application/x-javascript;}
Manually including mime.types
resolved this for me:
server { ... include /etc/nginx/mime.types; ...}