L
L
lynnikvadim2016-06-11 02:11:10
Nginx
lynnikvadim, 2016-06-11 02:11:10

Wasn't loaded because its MIME type ("text/plain") is not "text/css"?

css and js files not working.
Writes an error:

*****.css не была загружена, потому что её MIME-тип («text/plain») не «text/css».

How to eliminate?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Влад Животнев, 2016-06-11
@lynnikvadim

[email protected]:~# cat /etc/nginx/nginx.conf  | grep -n mime
26:	include /etc/nginx/mime.types;

A
Anton B, 2016-06-11
@bigton

в nginx mime подключить.
смотрите мануал, в нем все предельно ясно

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question