Project

General

Profile

Demande #5827

Besoin de mise à jour de la conf nginx

Added by François Poulain 5 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
03/22/2022
Due date:
% Done:

100%

Estimated time:
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

History

#1

Updated by Pierre-Louis Bonicoli 4 months ago

  • Assignee set to Pierre-Louis Bonicoli
#2

Updated by Quentin Gibeaux 4 months ago

  • Target version changed from Backlog to Mai 2022
#3

Updated by Pierre-Louis Bonicoli 4 months ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 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

Updated by Quentin Gibeaux 2 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF