YunoHost-Apps/yourls_ynh

Opening urls on latest release will not divert to yourls-loader.php thus give error

anmol26s opened this issue · 1 comments

Hello @ericgaspar
We can not remove this

yourls_ynh/scripts/install

Lines 127 to 132 in 25562d5

# Create a dedicated nginx config
if [ "$path_url" != "/" ]; then
ynh_replace_string --match_string="__PATHTOCHANGE__" --replace_string="$path_url" --target_file="../conf/nginx.conf"
else
ynh_replace_string --match_string="__PATHTOCHANGE__" --replace_string=" " --target_file="../conf/nginx.conf"
fi
as this will produce an error FastCGI sent in stderr: "Unable to open primary script: /var/www/yourls/var/www/yourls/yourls-loader.php (No such file or directory)" while reading response header from upstream, when we try to open an url.

Or we can remove it by handling the double slashes issue when the app is installed on root path, more gracefully.