1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00

Update of nginx.conf to look at index.html too

This commit is contained in:
polytan02 2015-04-13 15:50:33 +01:00
parent 80fc38d57b
commit 0d447e72fc
2 changed files with 2 additions and 1 deletions

View file

@ -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)(/.*)$;

View file

@ -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