rechange
parent
2ec1fdf1d1
commit
4e9f694246
|
@ -8,15 +8,27 @@ server {
|
|||
|
||||
client_max_body_size 1G;
|
||||
|
||||
|
||||
location /static/ {
|
||||
alias /etc/mailman3/static/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:6475;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
return 307 $scheme://lists.libraryofcode.org/cgi-bin/mailman/listinfo;
|
||||
}
|
||||
|
||||
location /cgi-bin/mailman {
|
||||
root /usr/lib/;
|
||||
fastcgi_split_path_info (^/cgi-bin/mailman/[^/]*)(.*)$;
|
||||
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;
|
||||
}
|
||||
|
||||
location /images/mailman {
|
||||
alias /usr/share/images/mailman;
|
||||
}
|
||||
|
||||
location /pipermail {
|
||||
alias /var/lib/mailman/archives/public;
|
||||
autoindex on;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue