diff --git a/conf/nginx.conf b/conf/nginx.conf index b0a4db4..0162271 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,4 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { # Path to source alias __FINALPATH__/web/; @@ -14,9 +13,9 @@ location __PATH__/ { # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file #client_max_body_size 50M; - try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string; + #try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string; - #try_files $uri $uri/ index.php; + try_files $uri $uri/ index.php; 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 6cb062b..1cea075 100644 --- a/manifest.json +++ b/manifest.json @@ -33,12 +33,6 @@ "type": "domain", "example": "example.com" }, - { - "name": "path", - "type": "path", - "example": "/quizzes", - "default": "/quizzes" - }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index 1b41c00..d6683d8 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC app=$YNH_APP_INSTANCE_NAME