Answer the question
In order to leave comments, you need to log in
Nginx gives the css file, but the properties from it do not work. Why?
Friends, I'm in a stupor.
Nginx is configured to serve static files with this directive
server {
listen 80;
location / {
root /root/zenresult/app;
}
location /static {
alias /root/zenresult/static;
}
}
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
Answer the question
In order to leave comments, you need to log in
All CSS with mime is given to text/plain.
Add something like this to the http sectioninclude /etc/nginx/mime.types
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question