diff --git a/conf/nginx.conf b/conf/nginx.conf index c465582..1d6cd66 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -32,7 +32,7 @@ location __PATH__/ { } location @__NAME__ { - rewrite ^__PATH__/(.*)$ __PATH__/index.php?/$1 last; + rewrite ^__PATH__/(.*)$ __PATH__/api/index.php?/$1 last; } location __PATH__/api { diff --git a/scripts/install b/scripts/install index fd9969b..b08f5bf 100644 --- a/scripts/install +++ b/scripts/install @@ -95,7 +95,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) # Set permissions to app files chown -R $app: $final_path -chmod -R 755 $final_path/api +chmod -R 777 $final_path/api #================================================= # INTEGRATE SERVICE IN YUNOHOST