Projet

Général

Profil

Demande #5827

Besoin de mise à jour de la conf nginx

Ajouté par François Poulain il y a environ 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normale
Catégorie:
-
Version cible:
Début:
22/03/2022
Echéance:
% réalisé:

100%

Temps estimé:
Difficulté:
2 Facile

Description

(April) root@bastion:~# nginx -t
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/sites-enabled/00_default:30

...

nginx: [warn] conflicting server name "pactelogiciellibre.fr" on 0.0.0.0:80, ignored

...

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Historique

#1

Mis à jour par Pierre-Louis Bonicoli il y a presque 2 ans

  • Assigné à mis à Pierre-Louis Bonicoli
#2

Mis à jour par Quentin Gibeaux il y a presque 2 ans

  • Version cible changé de Backlog à Mai 2022
#3

Mis à jour par Pierre-Louis Bonicoli il y a presque 2 ans

  • Statut changé de Nouveau à Résolu
  • % réalisé changé de 0 à 100

Les directives ssl ont été remplacées par des directives listen (7bdbc67760dc0eb0476e4dcb3eb8389494190f2d) à l'aide de la commande sed -i -e '/ssl on;$/d' -e 's/\([[:space:]]\+listen 443\);/\1 ssl;/' /etc/nginx/sites-available/*.

J'ai aussi corrigé ces warnings en supprimant les entrées dupliquées (394b1487a4b957ee026eba014d1ce9bce5abc4ac):

nginx: [warn] conflicting server name "pactelogiciellibre.fr" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "pactelogiciellibre.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "*.pactelogiciellibre.fr" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "*.pactelogiciellibre.org" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "pactelogiciellibre.fr" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "pactelogiciellibre.org" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "*.pactelogiciellibre.fr" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "*.pactelogiciellibre.org" on 0.0.0.0:443, ignored

Après ces deux modifications, les warnings ont bien disparu et le service nginx a été redémarré:

# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# systemctl restart nginx.service

#4

Mis à jour par Quentin Gibeaux il y a presque 2 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF