D
D
dogovor2016-04-16 12:00:15
linux
dogovor, 2016-04-16 12:00:15

Link to favicon returns text content-type instead of graphic, how to change?

Faced such a problem when communicating with search engine support:
Your favicon from the line

<link rel=«shortcut icon» href="http://site.ru/files/icons/favicon.ico" type=«image/vnd.microsoft.icon» />
gives our robot a text content-type, but we need a graphic one.
The server has CentOS, Nginx installed. Tell me where the settings for specifying types are stored?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dogovor, 2016-04-16
@dogovor

The issue was resolved.
During the analysis, it turned out that although the nginx configuration file contained the specified types:
/etc/nginx/mime.types
Data for display was extracted from the file:
/etc/mime.types
And it was necessary to add a line
After that, everything began to be reflected correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question