S
S
Sergey2018-02-28 21:53:27
Nginx
Sergey, 2018-02-28 21:53:27

NGINX assigns Content-Type:text/html to images, how to fix?

nginx site-enable settings:

spoiler
location /media   {
        alias /var/www/prestigekozha.ru/koja/media;


    }

    location /static {
        alias /var/www/prestigekozha.ru/koja/static;


    }

the picture gives out
5a96fa26775c0630529478.png
and the others
5a96faa51941e954846856.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2018-02-28
@megafax

Add mime types to config
Service for tips on configuring nginx https://nginxconfig.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question