1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

try change nginx.conf

This commit is contained in:
Robles Rodolphe 2020-04-08 16:16:05 +02:00
parent bd56a81f01
commit 7b5abb2e1a
2 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,8 @@ if ($scheme = http) {
} }
# Example PHP configuration (remove if not used) # Example PHP configuration (remove if not used)
index index.php; index index.php /_route.php;
try_files $uri $uri/ index.php; try_files $uri $uri/ index.php /_route.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;

View file

@ -69,7 +69,7 @@ then
ynh_store_file_checksum "$nginx_conf_path" ynh_store_file_checksum "$nginx_conf_path"
# ynh_replace_string # 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" 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 # Change the domain for nginx
if [ $change_domain -eq 1 ] if [ $change_domain -eq 1 ]
@ -81,6 +81,7 @@ then
ynh_store_file_checksum "/etc/nginx/conf.d/$new_domain.d/$app.conf" ynh_store_file_checksum "/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi fi
#=================================================
# GENERIC FINALISATION # GENERIC FINALISATION
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX