3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #214973 from paumr/roundcube_bugfix_nginx

nixos/roundcube: fixed nginx configuration
This commit is contained in:
Maximilian Bosch 2023-02-07 14:01:49 +01:00 committed by GitHub
commit 298148f714
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,9 +150,13 @@ in
root = cfg.package;
index = "index.php";
extraConfig = ''
location ~* \.php$ {
location ~* \.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:${fpm.socket};
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include ${config.services.nginx.package}/conf/fastcgi_params;
include ${pkgs.nginx}/conf/fastcgi.conf;
}