From 40af375983f4cd8606f27804045fb9f7f816c8f5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 14 Aug 2021 22:07:19 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 6 ++++-- manifest.json | 6 ++++++ scripts/install | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1ea0a34..6335766 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,5 @@ -location / { +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +location __PATH__/ { # Path to source alias __FINALPATH__/; @@ -12,7 +13,8 @@ location / { #client_max_body_size 50M; - try_files $uri $uri/ index.php; + try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string; + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; diff --git a/manifest.json b/manifest.json index 9d86cbf..d913170 100644 --- a/manifest.json +++ b/manifest.json @@ -36,6 +36,12 @@ "type": "domain", "example": "domain.org" }, + { + "name": "path", + "type": "path", + "example": "/easyappointments", + "default": "/easyappointments" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 2dfa321..9ab39e3 100644 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url="/" +path_url=$YNH_APP_ARG_PATH language=$YNH_APP_ARG_LANGUAGE is_public=$YNH_APP_ARG_IS_PUBLIC