From 7b5abb2e1a049c9bb435539307d90ae8f4c09465 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Wed, 8 Apr 2020 16:16:05 +0200 Subject: [PATCH] try change nginx.conf --- conf/nginx.conf | 4 ++-- scripts/change_url | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 04b7102..fa9058b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,8 +8,8 @@ if ($scheme = http) { } # Example PHP configuration (remove if not used) - index index.php; - try_files $uri $uri/ index.php; + index index.php /_route.php; + try_files $uri $uri/ index.php /_route.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/change_url b/scripts/change_url index ce53487..067a756 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -69,7 +69,7 @@ then ynh_store_file_checksum "$nginx_conf_path" # ynh_replace_string ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php" -fi +fi # Change the domain for nginx if [ $change_domain -eq 1 ] @@ -81,6 +81,7 @@ then ynh_store_file_checksum "/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= # GENERIC FINALISATION #================================================= # RELOAD NGINX