Answer the question
In order to leave comments, you need to log in
How to let the robot read a file from the server?
There is a need to connect the payment system to the site.
So they have a domain confirmation by adding a file to the root of the site.
We have a bunch of nginx + docker wordpress.
Connection via proxy_pass is configured.
Listens on port 80 and is proxied to the wordpress container.
Actually, the problem is that this file, which is downloaded for verification from the payment system, is read only from the browser (i.e., it returns everything on a get request).
But the robot cannot read them, actually the question.
What additional parameters should the nginx configuration contain in order for the robot to read it normally?
Answer the question
In order to leave comments, you need to log in
The robot is a browser. There is no difference .
If everyone reads, but the robot does not, these are problems of either a robot or a crooked hoster, which for some reason does not allow certain browsers.
To fix the problem, instead of the indistinct "nimozhit, nasalnik" you need a clear description of the problem - the ip of the robot, the user agent, the error message, the exact time of the request. Then look at the logs with this data.
At least what error is issued, this bank can tell? 404? 403? 500? The robot explodes and kills all living things within a radius of 5 meters with shrapnel?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question