[Mailman-Users] Mailman + nginx + uwsgi

Jim Popovitch jimpop at gmail.com
Mon May 8 23:31:36 EDT 2017


On May 8, 2017 23:10, "jim at ohlste.in" <jim at ohlste.in> wrote:

Hello,

Has anyone managed to get the above combination working on FreeBSD? I'm
using fcgiwrap, but it isn't the most elegant solution for a variety of
reasons.



Hi Jim,

I run mailman+nginx+uwsgi on Linux, but without fcgiwrap.

Here's some idea of how I do it:

$ cat /etc/uwsgi/apps-available/mailman.ini
[uwsgi]
plugins = cgi
vhost = true
master = true
touch-reload = %p
pidfile = /run/uwsgi/app/mailman/pid
disable-logging = true
socket = /run/uwsgi/app/mailman/socket
chdir = /
gid = www-data
uid = www-data
threads = 5
# use two mountpoints for cgi
cgi = /cgi-bin/mailman=/usr/lib/cgi-bin/mailman
cgi = /mailman=/usr/lib/cgi-bin/mailman
cgi-index = listinfo
vacuum = true
stats = 127.0.0.1:4999


>From /etc/nginx/sites-available/mailman.conf:

upstream _mailman {
        server unix:/run/uwsgi/app/mailman/socket;
}

server {
      ....
     location /mailman {
            .....
            include uwsgi_params;
            proxy_set_header Proxy "";
            uwsgi_param UWSGI_SCHEME $scheme;
            uwsgi_modifier1 9;
            uwsgi_pass _mailman;
        }
}


Let me know if you need more info.

-Jim P.


More information about the Mailman-Users mailing list