diff --git a/scripts/install b/scripts/install index 7ea7017..6ecea88 100644 --- a/scripts/install +++ b/scripts/install @@ -99,7 +99,7 @@ ynh_webpath_register $app $domain $path_url # Modify Nginx configuration file and copy it to Nginx conf directory nginx_conf=../conf/nginx.conf - sed -i "s@YNH_WWW_PATH@${path%/}@g" $nginx_conf + sed -i "s@YNH_WWW_PATH@${path_url%/}@g" $nginx_conf sed -i "s@YNH_WWW_ALIAS@$src_path/htdocs/@g" $nginx_conf sed -i "s@YNH_WWW_APP@$app@g" $nginx_conf sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf