From b048da14c710a6ccad439f4462bd4adf807c6399 Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 31 Jan 2024 12:09:54 +0700 Subject: [PATCH] Test --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0610eb0..37886f7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ location __PATH__/ { # Path to source - root __INSTALL_DIR__/; + alias __INSTALL_DIR__/; # Deny access to hidden files and directories location ~ ^/(.+/|)\.(?!well-known\/) { @@ -27,6 +27,7 @@ location __PATH__/ { # Default indexes and catch-all rewrite ^/(connexion|compte)$ /$1.html; + rewrite ^/api/([a-zA-Z0-9_]+)(\?.*)?$ /api/$1.php$2; index index.php index.html; try_files $uri $uri/ $uri.php?$args;