diff --git a/conf/nginx.conf b/conf/nginx.conf index 63531b1..51908f1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,7 +11,7 @@ location __PATH__/ { 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(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/install b/scripts/install index cdf0cf3..32bdd0c 100644 --- a/scripts/install +++ b/scripts/install @@ -73,13 +73,6 @@ ynh_setup_source --dest_dir="$final_path" #================================================= 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 ynh_add_nginx_config