Documente wwsympa en tant que service séparé
This commit is contained in:
parent
54ee16c074
commit
e5ea31010b
|
@ -128,6 +128,48 @@ Vous devez créer un VirtualHost du type après avoir désactivé la configurati
|
|||
|
||||
On conseille bien sûr de l'activer en [HTTPS](HowtoSSL), par exemple avec [Let's Encrypt](HowtoLetsEncrypt).
|
||||
|
||||
#### Avec un service FastCGI séparé
|
||||
|
||||
Il est aussi possible de faire tourner wwsympa.fcgi en tant que service fastcgi séparé avec spawn-fcgi (entre autre solutions), un service systemd pour cette méthode est le suivant:
|
||||
|
||||
~~~ { .ini }
|
||||
[Unit]
|
||||
Description=WWSympa - Web interface for Sympa mailing list manager
|
||||
After=syslog.target sympa.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=sympa
|
||||
Group=sympa
|
||||
ExecStart=!/usr/bin/spawn-fcgi -F 5 -P /run/sympa/wwsympa.pid -s /run/sympa/wwsympa.socket -u sympa -g sympa -M 0660 -G www-data -- /usr/lib/cgi-bin/sympa/wwsympa.fcgi
|
||||
Restart=always
|
||||
|
||||
RuntimeDirectory=sympa
|
||||
RuntimeDirectoryPreserve=yes
|
||||
PIDFile=/run/sympa/wwsympa.pid
|
||||
~~~
|
||||
|
||||
La configuration du vhost apache devient alors :
|
||||
|
||||
~~~ { .apache }
|
||||
<VirtualHost *:80 *:443>
|
||||
ServerName lists.example.com
|
||||
RedirectMatch ^/$ /wws/
|
||||
#Include /etc/apache2/ssl/sympa.conf
|
||||
|
||||
Alias /static-sympa /var/lib/sympa/static_content
|
||||
<Directory /var/lib/sympa/static_content>
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Location /wws>
|
||||
SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://"
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
</VirtualHost>
|
||||
~~~
|
||||
|
||||
### DKIM
|
||||
|
||||
Génération des clés DKIM :
|
||||
|
|
Loading…
Reference in a new issue