Nginx return file for path
location = /r/ {
try_files r.json =404;
}
Use the index
directive to name r.json
as the default filename within that location:
location /r/ {
index r.json;
alias /home/user/media/json/;
}
location = /r/ {
try_files r.json =404;
}
Use the index
directive to name r.json
as the default filename within that location:
location /r/ {
index r.json;
alias /home/user/media/json/;
}