Nginx. How to return json file?

        location / {
            root   html;
            index  index.html index.htm;
        }
		
        location /test {
            try_files $uri /test.json;            
        }	

put test.json near nginx.exe in html folder

This entry was posted in Без рубрики. Bookmark the permalink.