M
M
Michael2017-05-19 12:22:49
Nginx
Michael, 2017-05-19 12:22:49

How to make an nginx exception for robots.txt?

After moving to https, Yandex began to swear at the robots.txt file.
Сервер отвечает редиректом на запрос /robots.txt
As far as I understand, the problem is solved by adding the robots.txt file to the exceptions.
Please tell me how to do it right?
Current configuration:

server {
    listen      ип:80;
    server_name domain.ru www.domain.ru;
    return 301  https://domain.ru$request_uri;
}

server {
    listen      ип:443 ssl;
    server_name domain.ru;

...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2017-05-19
@VELIK505

It is optional to specify this in Yandex webmaster to move the site to https://webgyry.info/wp-content/uploads/2016-11-08...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question