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;