From 3cdfbee23fd1dbd05f5d015f1d6e744f6a07b8a7 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 18 Jun 2025 16:45:55 +0400 Subject: [PATCH] install nginx OK --- sympa/TODO.md | 3 +-- sympa/install.md | 9 +++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sympa/TODO.md b/sympa/TODO.md index 58afce1..cf00feb 100644 --- a/sympa/TODO.md +++ b/sympa/TODO.md @@ -11,8 +11,7 @@ TODO * [x] réessayer apache2 * [x] ok * [x] réessayer avec nginx - * [x] ça a fonctionné une fois ! - * [ ] mais, je n'arrive pas à reproduire une installation *from scratch*, pas cool :-( + * [x] correction de l'installation * [ ] tester la version Debian12 avec une IP fixe * [ ] configurer postfix conformément à la version Debian9 * [ ] migrer une ancienne version de liste de Debian 9 vers la version Debian 12 diff --git a/sympa/install.md b/sympa/install.md index c1976e4..6f78e73 100644 --- a/sympa/install.md +++ b/sympa/install.md @@ -22,7 +22,7 @@ LISTMASTER=pvincent@artcode.re * pass: sympa * web: apache2 * setuid: no -* vim /etc/sympa/sympa/sympa.conf # +* editor /etc/sympa/sympa/sympa.conf * listmaster: {{LISTMASTER}} * lang: fr * wwsympa_url: http://{{PUBLIC_URL}}/wws @@ -56,11 +56,12 @@ LISTMASTER=pvincent@artcode.re ``` server { listen 80; - server_name {{PUBLIC_URL}}; + server_name _; rewrite ^/$ /wws permanent; location /wws { include fastcgi_params; + fastcgi_param SERVER_NAME $host; fastcgi_pass unix:/run/sympa/wwsympa.socket; } @@ -82,3 +83,7 @@ server { * rm default * ln -s ../sites-available/sympa.conf * systemctl reload nginx + +## after any sympa change! + +* systemctl restart wwsympa.socket