Closed foremtehan closed 10 months ago
Hi @foremtehan,
I don't see how this could be caused by the Nginx configuration.
What I notice in your log lines is that the request from Ahrefs has a upstream response time (0.025
) and the request from you doesn't have that. That could mean that the request from Ahrefs is forwarded to PHP-FPM and your request isn't.
Is robots.txt
an actual file or is it handled by the Laravel application?
I have that file under /public/robots.txt, but nevermind; I did not find any 404 errors from that moment until now. Thanks for the response <3
I am using the exact same nginx config file in a Laravel application. However, today I noticed that some bots are encountering a 404 error on
/robots.txt
, whereas when I visit the route myself, everything seems to be working fine. What could be causing this issue?this is a 404 log on AhrefsBot:
Visit by myself in a browser and i can see the content of file:
what's the issue?