Webapp update - 404 Nginx permalink

FR

Salut, après avoir mis à jour mes webapp, je me retrouve avec mes permaliens qui ne fonctionnent plus sur les domaines utilisant la webapp. Alors qu’aucun soucis avant.

Je ne sais pas trop ou chercher pour rétablir les permaliens comme avant, étant plutôt habitué à Apache2, je suis peu doué avec Nginx.

Pourriez vous m’indiquer ou me diriger vers une marche à suivre s’il vous plait ?

Les sites incriminés : https://karma-kusala.com/ https://neru.io/ (qui est un wordpress mais je n’ai pas voulu installer le wordpress yunohost)


EN

Hello

After an update of my webapp, the permalink of my website doen’t work anymore. I’m a beginner with nginx on yunohost and i don’t know how to modify configuration file to restore links like before.

Can you help me please ?

My websites with the problem : https://karma-kusala.com/ https://neru.io/

Provide the nginx logs for the /var/log/nginx/karma-kusala.com-access.log and /var/log/nginx/karma-kusala.com-error.log. Similarly provide the logs for neru.io. Also provide the version of yunohost, apps installed on different domains.

If the wordpress or any app is installed on karma-kusala.com, it can not be used for the webapp.

Latest version of everything.

The problem comes with the last update of webapp that have erased the url rewriting. I’m just looking for find where i can modify that in the configuration files.

The url rules are done by ssowat. You can see in /etc/ssowat/conf.json and make custom rules in
/etc/ssowat/conf.json.persistent. After you modify the rules you have to do yunohost app ssowatconf.

Updating the webapp can not erase the url rewriting. It has to do with the app or the ssowat.

You don’t understand. It’s an nginx problem since last update. Url rewriting are not working with nginx and i don’t know where i can modify that. With apache2, it’s easy with htaccess rules but here… It’s not working.

The problem come with webapp only, with a wordpress installation, the permalink are correctly rewrited, the rules in ssowat are the same.

bon j’ai trouvé un fix, mais a mon avis c’est pas la bonne façon
dans /etc/nginx/conf.d/karma-kusala.com.d/my_webapp__4.conf, il y’a une redirection, je sais pas trop a quoi elle sert elle renvoi vers la page générique nginx (/usr/share/nginx/html/index.html):

# Default indexes and catch-all
index index.html index.php;
try_files $uri $uri/ /index.php?$args;

En tout cas elle etait foireuse car redirigeait vers /usr/share/nginx/htmlindex.php, on vois qu’il manque le / entre html et index.php… Du coup j’ai mis un double / devant index et ca passe, mais le vrai pb c’est que le / y est deja, et que ya quelque chose quelque part qui l’enlève…

try_files $uri $uri/ /index.php?$args;

=>

try_files $uri $uri/ //index.php?$args;

Le problème vient bien de la mise a jour de la webapp

3 Likes