<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 2, 2021 at 11:18 PM Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<br>
On Mon, Aug 02, 2021 at 09:12:59PM +0530, Kaushal Shriyan wrote:<br>
<br>
> I am running nginx version: nginx/1.20.1 on CentOS Linux release 7.9.2009<br>
> (Core). When I am accessing<br>
> <a href="https://dsmadeveloperportal.mydomain.com/sites/default/files/2020-08/dsmaAccount%20and%20Transaction%20API%20Specification_2_1.yml" rel="noreferrer" target="_blank">https://dsmadeveloperportal.mydomain.com/sites/default/files/2020-08/dsmaAccount%20and%20Transaction%20API%20Specification_2_1.yml</a>,<br>
> I am encountering 404 Not Found while accessing it. On the server, the<br>
> file is there<br>
> <br>
> #ls -l<br>
> "/var/www/html/dacdeveloperportal/web/sites/default/files/2020-08/dsmaAccount<br>
> and Transaction API Specification_2_1.yml"<br>
> -rwxrwxrwx 1 nginx nginx 418867 Aug 2 05:21<br>
> /var/www/html/dacdeveloperportal/web/sites/default/files/2020-08/dsmaAccount<br>
> and Transaction API Specification_2_1.yml<br>
<br>
[...]<br>
<br>
> root /var/www/html/dsmadeveloperportal/web;<br>
<br>
Note this does not match the file location, "dsma" vs "dac".<br>
<br>
Note well that additional useful information can be found in nginx <br>
error log. Looking into error log usually greatly simplifies <br>
debugging problems like this.<br>
<br>
-- <br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote><div><br></div><div>Hi Maxim,</div><div><br></div><div>Thanks for the email. Apologies for sharing the incorrect file path, there was a typo error in the file path. Please ignore it.</div><div>The correct file path is as below:-<br></div><div><br></div><div>#ls -l "/var/www/html/dsmadeveloperportal/web/sites/default/files/2021-08/Account%20and%20Transaction%20API%20Specification_2_1.yml"<br></div><div><br></div><div>-rwxrwxrwx 1 nginx nginx 418867 Aug 2 05:21 /var/www/html/dsmadeveloperportal/web/sites/default/files/2021-08/Account%20and%20Transaction%20API%20Specification_2_1.yml<br></div><div><br></div><div><div>[root@dsmadeveloperportal web]#pwd<br></div><div>/var/www/html/dsmadeveloperportal/web<br>[root@dsmadeveloperportal web]# ls -l<br></div><div>total 44<br>-rw-rw-r-- 1 nginx nginx 385 Jul 12 14:21 autoload.php<br>drwxr-xr-x 12 nginx nginx 4096 Jul 28 11:52 core<br>-rw-r--r-- 1 nginx nginx 1507 Jul 28 11:53 example.gitignore<br>-rw-rw-r-- 1 nginx nginx 549 Jul 12 14:21 index.php<br>-rw-r--r-- 1 nginx nginx 95 Jul 28 11:53 INSTALL.txt<br>drwxrwxr-x 6 nginx nginx 77 Jul 28 11:53 libraries<br>drwxrwxr-x 4 nginx nginx 69 Jul 28 11:53 modules<br>drwxrwxr-x 2 nginx nginx 40 Jul 28 11:53 profiles<br>-rw-r--r-- 1 nginx nginx 5924 Jul 28 11:53 README.txt<br>-rw-rw-r-- 1 nginx nginx 1594 Jul 12 14:21 robots.txt<br>drwxrwxr-x 3 nginx nginx 130 Jul 28 11:53 sites<br>drwxrwxr-x 4 nginx nginx 69 Jul 28 11:53 themes<br>-rw-rw-r-- 1 nginx nginx 848 Jul 12 14:21 update.php<br>-rw-rw-r-- 1 nginx nginx 4566 Jul 12 14:21 web.config<br>[root@dacdeveloperportal web]# </div><div><br></div></div><div>I have attached the Nginx web server debug logs along with the Nginx config files for your reference. Please let me know if you need any additional information. Thanks in advance and I look forward to hearing from you. Please comment. </div><div><br></div><div>Best Regards,<br></div><div><div><br></div><div>Kaushal</div><div class="gmail-yj6qo"></div><div class="gmail-adL"><br></div></div></div></div>