404 Not Found while accessing the file

Maxim Dounin mdounin at mdounin.ru
Mon Aug 2 17:48:12 UTC 2021


Hello!

On Mon, Aug 02, 2021 at 09:12:59PM +0530, Kaushal Shriyan wrote:

> I am running nginx version: nginx/1.20.1 on CentOS Linux release 7.9.2009
> (Core). When I am accessing
> https://dsmadeveloperportal.mydomain.com/sites/default/files/2020-08/dsmaAccount%20and%20Transaction%20API%20Specification_2_1.yml,
> I am encountering  404 Not Found while accessing it. On the server, the
> file is there
> 
> #ls -l
> "/var/www/html/dacdeveloperportal/web/sites/default/files/2020-08/dsmaAccount
> and Transaction API Specification_2_1.yml"
> -rwxrwxrwx 1 nginx nginx 418867 Aug  2 05:21
> /var/www/html/dacdeveloperportal/web/sites/default/files/2020-08/dsmaAccount
> and Transaction API Specification_2_1.yml

[...]

> root /var/www/html/dsmadeveloperportal/web;

Note this does not match the file location, "dsma" vs "dac".

Note well that additional useful information can be found in nginx 
error log.  Looking into error log usually greatly simplifies 
debugging problems like this.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list