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
1 changed files with 3 additions and 11 deletions

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;