403 error for ads.txt NGinx Vultr

Hello,

When I try to access the ads.txt file in my WordPress site which is hosted on the Nginx server (Vultr), I’m facing a 403 forbidden error. Please suggest a solution. Not much help was available when I searched on google.

Check Permission of WordPress files

Permissions are as expected. But still it’s not serving

Please check logs (/var/log/nginx/) to understand what’s happening. Also, look at config available at /etc/nginx/sites-available/ to make any neccessary changes as hinted by log.