Add (or not ?) $uri.html on nginx configuration

What app is this about, and its version: my_webapp 1.0~ynh21
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

I used my_webapp package for a static blog (without php) and I had to add a specific nginx conf file (/etc/nginx/conf.d/sub.domain.tld.d/blabla.conf) with try_files $uri $uri.html $uri/ =404; to serve html files correctly.
Is it a good practice ? Or should I need to propose a MR on github package to update generic nginx.conf (my_webapp_ynh/conf/nginx.conf at master · YunoHost-Apps/my_webapp_ynh · GitHub) with something like

try_files $uri $uri/ $uri.html __PATH__/index.php?$args =404;

instead of actual

try_files $uri $uri/ $uri__PATH__/index.php?$args =404;

Share relevant logs or error messages

n.a

I found a previous discussion about it (paths like `/post/example-post` should serve `example-post.html` · Issue #89 · YunoHost-Apps/my_webapp_ynh · GitHub) but i’m not sure to understand all the impact

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.