# Broken Nginx / Nginx cassé

**URL:** <https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983>\
**Category:** Support\
**Tags:** nginx, french\
**Created:** [September 12, 2026, 1:14pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983 "2026-09-12T13:14:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yacoubaa](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yacoubaa/32/3105_2.png) [@yacoubaa](https://forum.yunohost.org/u/yacoubaa)\
**Post date:** [September 12, 2026, 1:14pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/1 "2026-09-12T13:14:37Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![yacoubaa](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yacoubaa/32/3105_2.png) [@yacoubaa](https://forum.yunohost.org/u/yacoubaa)\
**Post date:** [September 12, 2026, 1:28pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/2 "2026-09-12T13:28:43Z")

</div>

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](https://paste.yunohost.org/efafirefov.properties)

> Pdf.\*\*\*\*\ ***.** \*\*\*.conf
> 
> [hastebin](https://paste.yunohost.org/coguzaqogu.properties)

> Sandbox.test.\*\*\*\*\ ***.** \*\*\*.conf
> 
> [hastebin](https://paste.yunohost.org/ocoqoxojax.nginx)

> Nginx.conf
> 
> [hastebin](https://paste.yunohost.org/owobaxotog.nginx)

> Fichier conf NGINX du dernier sous-domaine crée (pour une redirection Web)
> 
> [hastebin](https://paste.yunohost.org/japamocigi.properties)

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [September 12, 2026, 1:37pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/3 "2026-09-12T13:37:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yacoubaa](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yacoubaa/32/3105_2.png) [@yacoubaa](https://forum.yunohost.org/u/yacoubaa)\
**Post date:** [September 12, 2026, 1:50pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/4 "2026-09-12T13:50:50Z")

</div>

> [@jarod5001](#):
>
> yunohost tools regen-conf nginx

Thanks for your help

Here is the feedback following the first order :

> [hastebin](https://paste.yunohost.org/efegehawas.diff)

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

> [hastebin](https://paste.yunohost.org/obemuxawux.yaml)

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

---

<div class="post-metadata">

**Author:** ![yacoubaa](https://forum.yunohost.org/user_avatar/forum.yunohost.org/yacoubaa/32/3105_2.png) [@yacoubaa](https://forum.yunohost.org/u/yacoubaa)\
**Post date:** [September 12, 2026, 1:56pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/5 "2026-09-12T13:56:12Z")

</div>

All is fine.

Thans a lot Jarod 😉

Have a nice week end

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [October 12, 2026, 1:56pm UTC](https://forum.yunohost.org/t/broken-nginx-nginx-casse/42983/6 "2026-10-12T13:56:45Z")

</div>

Closed on October 12, 2026, 1:56pm UTC

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