ansible/roles/mail/templates/nginx/vhost.j2

29 lines
650 B
Plaintext
Raw Normal View History

2016-02-29 21:29:44 +01:00
server {
listen 80;
server_name {{ mailman_domain }};
2016-02-29 21:55:12 +01:00
root /usr/lib/cgi-bin/mailman/;
2016-02-29 21:29:44 +01:00
location = / {
2016-02-29 21:55:12 +01:00
rewrite ^ /listinfo permanent;
2016-02-29 21:29:44 +01:00
}
location / {
2016-02-29 21:55:12 +01:00
fastcgi_split_path_info (^/[^/]*)(.*)$;
2016-02-29 21:29:44 +01:00
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;
}
2016-02-29 21:55:12 +01:00
2016-02-29 21:29:44 +01:00
location /images/mailman {
alias /usr/share/images/mailman;
}
2016-02-29 21:55:12 +01:00
2016-02-29 21:29:44 +01:00
location /pipermail {
alias /var/lib/mailman/archives/public;
autoindex on;
}
}