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 = / { location = / {
rewrite ^ /mailman/listinfo permanent; rewrite ^ /listinfo permanent;
} }
location / { location / {
rewrite ^ /mailman$uri?$args; root /usr/lib/cgi-bin/mailman;
} fastcgi_split_path_info (^/[^/]*)(.*)$;
location = /mailman/ {
rewrite ^ /mailman/listinfo permanent;
}
location /mailman {
root /usr/lib/cgi-bin;
fastcgi_split_path_info (^/mailman/[^/]+)(/.*)$;
fastcgi_pass unix:///var/run/fcgiwrap.socket; fastcgi_pass unix:///var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;