From a853eb6f00df50df259ad151249308dc799b0775 Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 21 Feb 2024 00:06:15 +0700 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ce639c5..d4b5734 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -25,10 +25,13 @@ location __PATH__/ { access_log off; } + location /api/version { + rewrite ^/api/version$ /api/version.json; + } + # Default indexes and catch-all rewrite ^/(connexion|compte)$ /$1.php; - rewrite ^/api/version$ /api/version.json; - rewrite ^/api/([a-zA-Z0-9_^\.]+)(\?.*)?$ /api/$1.php$2; + rewrite ^/api/([a-zA-Z0-9_]+)(\?.*)?$ /api/$1.php$2; index index.php index.html; try_files $uri $uri/ $uri.php?$args;