From 192a8c3e460e4ac0433a7b9be6a5262f966c6fc7 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 23 May 2016 05:35:20 +0200 Subject: [PATCH] Fix path to root directory SInce installing Yunohost 2.4, I couldn't display the `index.html` page of a vanilla my_webapp installation (404). Nginx logs displayed this error: > [error] 6345#0: *218 open() "/usr/share/nginx/htmlindex.php" failed (2: No such file or directory), client: 82.66.214.87, server: kemenaran.eu, request: "GET /index.html HTTP/1.1", host: "kemenaran.eu" Steps to reproduce: 1. Install Yunohost 2.4 2. Add a new custom domain (e.g. mydomain.com) 3. Install a my_webapp using this custom domain 4. Attempt to open `mydomain.com./index.html` in a web browser Adding this trailing slash solves the issue. I'm not sure this is how it should be solved, but it fixed a painful issue for me :) --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 602153f..ee9561f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,5 @@ location {LOCATION} { - alias {DESTDIR}/www; + alias {DESTDIR}/www/; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; }