diff --git a/scripts/change_url b/scripts/change_url index 5195dab..6599a65 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,6 +28,11 @@ ynh_systemd_action --service_name=$app --action="stop" # MODIFY URL IN NGINX CONF #================================================= ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 +#Cannot use empty string for X-script-name, causes an issue in the python prg +if [ $path_url = "/" ] ; then + ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf +fi + ynh_change_url_nginx_config #=================================================