1
0
forked from infra/ansible

Another round of new mailman vhost settings.

This commit is contained in:
Markus 2016-04-09 20:41:17 +02:00
parent 8f70860f8e
commit 1f679bcbcf

View File

@ -15,20 +15,12 @@ server {
}
location = / {
rewrite ^ /mailman/listinfo permanent;
rewrite ^ /listinfo permanent;
}
location / {
rewrite ^ /mailman$uri?$args;
}
location = /mailman/ {
rewrite ^ /mailman/listinfo permanent;
}
location /mailman {
root /usr/lib/cgi-bin;
fastcgi_split_path_info (^/mailman/[^/]+)(/.*)$;
root /usr/lib/cgi-bin/mailman;
fastcgi_split_path_info (^/[^/]*)(.*)$;
fastcgi_pass unix:///var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;