Static files

MarcoI nginx-forum at
Mon May 11 14:24:49 UTC 2020

I'm trying to figure out how to load static files .

I added to /etc/nginx/conf.d/default.conf the following lines:

server {
    location / {

But I'm still getting this error: Uncaught (in promise) SyntaxError:
Unexpected token < in JSON at position 0
which, according to the people intervened in the github issue, should be
related to a mis-configuration in the web-server for static files serving:

How to solve the problem?
Looking forward to your kind help.

Posted at Nginx Forum:,287991,287991#msg-287991

More information about the nginx mailing list