1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00
This commit is contained in:
ericgaspar 2020-12-01 11:36:55 +01:00
parent 88d8d0bb16
commit 3cadf7cd51
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 1 additions and 8 deletions

View file

@ -11,7 +11,7 @@ location __PATH__/ {
index index.php; index index.php;
try_files $uri $uri/ __PATH_HACK__/index.php$is_args$args; try_files $uri $uri/ __PATH__//__PATH__/index.php$is_args$args;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;

View file

@ -73,13 +73,6 @@ ynh_setup_source --dest_dir="$final_path"
#================================================= #=================================================
ynh_script_progression --message="Configuring NGINX web server..." ynh_script_progression --message="Configuring NGINX web server..."
# Bug in NGINX with locations and aliases (see http://stackoverflow.com/a/35102259 )
if [ $path_url = "/" ]; then
ynh_replace_string "__PATH_HACK__" "" "../conf/nginx.conf"
else
ynh_replace_string "__PATH_HACK__" "$path_url/$path_url" "../conf/nginx.conf"
fi
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config