diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index 0f2b8acf..a31d4680 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -76,6 +76,10 @@ server { rewrite ^(.*)$ $1.php last; } + location /api/ { + try_files /_apidocs.html; + } + location ~ ^/api/v1/(.*)$ { try_files $uri $uri/ /json_api.php?query=$1; }