-
Notifications
You must be signed in to change notification settings - Fork 5
/
nginx.conf
38 lines (32 loc) · 904 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
server {
listen *:80;
server_name _;
root /usr/lib/cgi-bin/mailman;
# Listinfo is the index
location = / {
rewrite ^ /listinfo permanent;
}
location / {
fastcgi_split_path_info ^(/[^/]*)(.*)$;
fastcgi_pass unix:/var/run/fcgiwrap.sock;
include fastcgi.conf;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
}
# catch old 'cgi-bin' links
location /cgi-bin {
rewrite ^/cgi-bin/mailman(.*)$ $1 permanent;
}
location /images/mailman {
alias /usr/share/images/mailman;
}
# Expose archives (regex can't be used due to / fcgi location)
location /archives {
alias /var/lib/mailman/archives/public;
autoindex on;
}
location /pipermail {
alias /var/lib/mailman/archives/public;
autoindex on;
}
}