From 0d447e72fc1e7b682ee3adeb918e13d08fb92021 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Mon, 13 Apr 2015 15:50:33 +0100 Subject: [PATCH] Update of nginx.conf to look at index.html too --- conf/nginx.conf | 2 +- scripts/upgrade | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c7d5d44..7024722 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,7 +6,7 @@ location PATHTOCHANGE { } client_max_body_size 10G; - index index.php; + index index.php index.html; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/upgrade b/scripts/upgrade index 8c597b4..3a6455d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,6 +16,7 @@ final_path=$(sudo yunohost app setting $app final_path) # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf +sed -i "s@NAMETOCHANGE@$domain\_$sitename@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$name.conf