add auto cast file->file.html

This commit is contained in:
Jean-Marie Mineau 2021-05-05 13:49:09 +02:00
parent 414272d7ce
commit 6698927b88
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,6 @@ reverse_proxy_sites:
- {from: openid.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:7443"} - {from: openid.deso-palaiseau.fr, to: "https://azerty.fil.sand.auro.re:7443"}
sharing_sites: sharing_sites:
- {from: share.deso-palaiseau.fr, folder: "/home/histausse/www/", user: histausse, group: histausse} - {from: share.deso-palaiseau.fr, folder: "/home/histausse/www", user: histausse, group: histausse}
- {from: authority.deso-palaiseau.fr, folder: "/var/www/authority/", user: root, group: root} - {from: authority.deso-palaiseau.fr, folder: "/var/www/authority", user: root, group: root}
- {from: authority-info-access.deso-palaiseau.fr, folder: "/var/www/authority_info_access/", user: root, group: root} - {from: authority-info-access.deso-palaiseau.fr, folder: "/var/www/authority_info_access", user: root, group: root}

View file

@ -27,7 +27,8 @@ server {
error_log /var/log/nginx/{{ item.from }}_error.log; error_log /var/log/nginx/{{ item.from }}_error.log;
location / { location / {
alias {{ item.folder }}; root {{ item.folder }};
try_files $uri $uri.html 404;
} }
} }