Broken Nginx / Nginx cassé

I have searched the forum for similar issues

on

This category is for general issues(=something is broken) regarding YunoHost, NOT apps.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What type of hardware are you using

Old laptop or computer

What YunoHost version are you running

12.1.41.2

How are you able to access your server

SSH

Describe your issue

French :

Bonjour,

J’ai procédé à deux déinstallations (cryptpad et Stirling PDF) puis à l’installation de BentoPDF sur le sous-domaine occupé initialement par Stirling.
Je ne me suis pas rendu compte de suite des problème NGINX
J’ai par la suite ajouté un sous-domaine pour une future création de redirection vers un site web externe
La création du certificat Let’s encrypt a raté. Première puce à l’oreille
J’ai fini par constater la présence de la casse NGINX en lançant un diagnostic complet.
Etant fatigué, j’ai redémarré le PC-Serveur (erreur de ma part, le NGINX n’allant pas se corriger tout seul)
Accès désormais uniquement en SSH (logique vu la casse NGINX)
Une bonne âme pourrait-t-elle me guider afin de réparer NGINX (je ne suis pas très doué avec NGINX) ?
Nota : si je dois faire sauter BentoPDF, pas de pb.

Merci par avance.

English :

Hello,

I uninstalled two programmes (Cryptpad and Stirling PDF) and then installed BentoPDF on the subdomain originally occupied by Stirling.
I didn’t realise straight away that there were NGINX issues.
I subsequently added a subdomain to set up a redirect to an external website in the future
The creation of the Let’s Encrypt certificate failed. That was the first warning sign.
I eventually realised there was an NGINX issue by running a full diagnostic.
As I was tired, I restarted the server PC (a mistake on my part, as NGINX isn’t going to fix itself).
Access is now via SSH only (which makes sense given the NGINX crash)
Could a kind soul guide me on how to fix NGINX (I’m not very good with NGINX)?
Note: if I have to get rid of BentoPDF, that’s fine.

Thanks in advance.

Share relevant logs or error messages

root@:~# nginx -t
2026/09/12 02:33:47 [warn] 2822#2822: duplicate extension “js”, content type: “application/javascript”, previous content type: “application/javascript” in /etc/nginx/conf.d/pdf.
**.*d/bentopdf.conf:13
2026/09/12 02:33:47 [emerg] 2822#2822: open() “/etc/nginx/conf.d/cryptpad-shared.conf.inc” failed (2: No such file or directory) in /etc/nginx/conf.d/sandbox.test.
**.*.conf:38
nginx: configuration file /etc/nginx/nginx.conf test failed
root@****:~# systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xeu nginx.service” for details.

Pour compléter, voici le contenu des fichiers cités / To round things off, here is the content of the files mentioned :

Bentopdf.conf

hastebin

Pdf.*****.***.conf

hastebin

Sandbox.test.*****.***.conf

hastebin

Nginx.conf

hastebin

Fichier conf NGINX du dernier sous-domaine crée (pour une redirection Web)

hastebin

Try
yunohost tools regen-conf nginx --dry-run --with-diff
To see if anything has been manually changed. And --force to regenerate the nginx configs

Thanks for your help

Here is the feedback following the first order :

hastebin

After regen-conf nginx --force and nginx-t

hastebin

I’m going to restart the server to see if the web interface is working properly again

All is fine.

Thans a lot Jarod :wink:

Have a nice week end