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:
parent
2931051b04
commit
192a8c3e46
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
location {LOCATION} {
|
||||
alias {DESTDIR}/www;
|
||||
alias {DESTDIR}/www/;
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue