Fastcgi_param problem with Mailman in nginx_apps.vhost.master
I setup ISPConfig on Ubuntu Trusty with Nginx and can't use the Mailman directives of the Apps vhost. The problem is probably that fastcgi_param SCRIPT_FILENAME
is defined twice.
I could access domain.tld:8081/cgi-bin/mailman/listinfo
But not domain.tld:8081/cgi-bin/mailman/listinfo/nameoflist
which results in an error message:
2016/02/26 17:50:20 [error] 16928#0: *17 FastCGI sent in stderr: "Cannot get script name, are DOCUMENT_ROOT and SCRIPT_NAME (or SCRIPT_FILENAME) set and is the script executable?" while reading response header from upstream, client: 192.168.0.53, server: domain.tld, request: "GET /cgi-bin/mailman/listinfo/nameoflist HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "domain.tld", referrer: "http://domain.tld:8081/cgi-bin/mailman/listinfo"
I could fix that issue by removing fastcgi_param SCRIPT_FILENAME $request_filename;
in the file nginx_apps.vhost.master https://git.ispconfig.org/ispconfig/ispconfig3/blob/master/server/conf/nginx_apps.vhost.master#L167