1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

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 :)
This commit is contained in:
Pierre de La Morinerie 2016-05-23 05:35:20 +02:00
parent 2931051b04
commit 192a8c3e46

View file

@ -1,5 +1,5 @@
location {LOCATION} {
alias {DESTDIR}/www;
alias {DESTDIR}/www/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}