Mailman installation

I have installed Mailman according to these instructions with some exceptions (which I will elucidate): https://www.howtoforge.com/running-mailman-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04-11.10

I am using MIAB dns and created a user alias user@lists.ecovillage.cc the directory for web files for the vhost lists.ecovillage.cc then is /home/user-data/www/default

I have created the default mailman list, my DNS seems to be working fine. I cannot bring up the mailman admin web page at https://lists.ecovillage.cc/cgi-bin/mailman/listinfo/mailman (404 error). The nginx error log shows:

2019/05/25 06:17:36 [warn] 3953#3953: server name “/var/www/lists.ecovillage.cc/web” has suspicious symbols in /etc/nginx/sites-enabled/lists.ecovillage.cc.vhost:4
2019/05/25 06:17:36 [warn] 3953#3953: conflicting server name “lists.ecovillage.cc” on 0.0.0.0:80, ignored
2019/05/25 06:17:36 [notice] 3953#3953: signal process started
2019/05/25 06:17:41 [error] 3971#3971: *751 “/home/user-data/www/default/cgi-bin/mailman/admin/index.html” is not found (2: No such file or directory), client: 157.131.93.250, server: lists.ecovillage.cc, request: “GET /cgi-bin/mailman/admin/ HTTP/2.0”, host: “lists.ecovillage.cc”
2019/05/25 06:18:22 [error] 3971#3971: *751 open() “/home/user-data/www/default/cgi-bin/mailman/listinfo/mailman” failed (2: No such file or directory), client: 157.131.93.250, server: lists.ecovillage.cc, request: “GET /cgi-bin/mailman/listinfo/mailman HTTP/2.0”, host: “lists.ecovillage.cc”

I believe I need to create a soft link from /home/user-data/www/default to the mailman executables but am fuzzy as to what it should be (I’m an apache guy, new to nginx). Thank you in advance!

Personally, I would have installed mailman elsewhere … MiaB servers are meant to be Miab Servers. I don’t like to make unsupported modifications.

If, however, I were to install mailman on the same server I certainly think that I would have changed the default document root.

Will you share the contents of the Server Block (vHost) file for lists.ecovillage.cc please? I am not great with them, but it seems pretty obvious that something has gone tilt there. Someone better than me will come along and they will need to see it anyways.

server {
listen 80;
server_name lists.ecovillage.cc
root /var/www/lists.ecovillage.cc/web;
if ($http_host != “lists.ecovillage.cc”) {
rewrite ^ http://lists.ecovillage.cc$request_uri permanent;
}
index index.php index.html;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /. {
deny all;
access_log off;
log_not_found off;
}
location ~* .(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location /cgi-bin/mailman {
root /usr/lib/;
fastcgi_split_path_info (^/cgi-bin/mailman/[^/])(.)$;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
location /images/mailman {
alias /usr/share/images/mailman;
}
location /pipermail {
alias /var/lib/mailman/archives/public;
autoindex on;
}
}