From 05cc520dd9b170a55d8a9a7db2b5e28323eade6d Mon Sep 17 00:00:00 2001 From: Rodolphe Robles Date: Tue, 7 Apr 2020 19:46:56 +0200 Subject: [PATCH] try to make possible install on root path and change url from or to root path --- conf/nginx.conf | 4 ++-- scripts/install | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 265611a..5292783 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,13 +8,13 @@ location __PATH__ { } # Example PHP configuration (remove if not used) - # index index.php /_route.php; + index index.php; # Common parameter to increase upload size limit in conjuction with dedicated php-fpm file #client_max_body_size 50M; location ~ [^/]\.php(/|$) { - try_files $uri $uri/ index.php /_route.php; + try_files $uri $uri/ index.php; fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; fastcgi_index index.php; diff --git a/scripts/install b/scripts/install index 7327a06..d7f6478 100644 --- a/scripts/install +++ b/scripts/install @@ -89,6 +89,7 @@ cp -a $final_path/config.dist.php $final_path/config.local.php # ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php" ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --target_file="$final_path/config.local.php" ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php" +ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = '/var/www/garradin/www';" --target_file="$final_path/config.local.php" #================================================= # Files owned by user app