From 3f31c0d2a38209f0ad212afa061598b43bd1a5b2 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Wed, 10 Jun 2020 17:44:37 +0200 Subject: [PATCH] nixos/sympa: fix PATH_INFO splitting for sympa-6.2.56 Our regex for splitting HTTP path into SCRIPT_NAME and PATH_INFO was incorrect when webLocation was set to "/". Since Sympa 6.2.56 this has caused the web interface to return "421 Misdirected Request". Since 6.2.56 Sympa can do the splitting on its own so we can simply remove it from nginx configuration. See also: - https://github.com/sympa-community/sympa/issues/879 - https://github.com/sympa-community/sympa/pull/910 - https://github.com/sympa-community/sympa-community.github.io/pull/53 (cherry picked from commit bd4e4dddff966838127c859e77fa041aab270bba) --- nixos/modules/services/mail/sympa.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nixos/modules/services/mail/sympa.nix b/nixos/modules/services/mail/sympa.nix index 0cad09927b2fb..491b6dba9aa42 100644 --- a/nixos/modules/services/mail/sympa.nix +++ b/nixos/modules/services/mail/sympa.nix @@ -513,10 +513,6 @@ in include ${config.services.nginx.package}/conf/fastcgi_params; fastcgi_pass unix:/run/sympa/wwsympa.socket; - fastcgi_split_path_info ^(${loc})(.*)$; - - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param SCRIPT_FILENAME ${pkg}/lib/sympa/cgi/wwsympa.fcgi; ''; }) // { "/static-sympa/".alias = "${dataDir}/static_content/";